From e98e6ec1117b83defce2b1ccce6fd4ec3877bbfb Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Fri, 24 Jan 1992 22:44:51 +0000 Subject: Uses the new small reloc type now. Currently self hosts on sun4 and sun3 --- bfd/ctor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bfd/ctor.c') diff --git a/bfd/ctor.c b/bfd/ctor.c index 1bcb49c..d81df61 100644 --- a/bfd/ctor.c +++ b/bfd/ctor.c @@ -132,18 +132,18 @@ void DEFUN(bfd_constructor_entry,(abfd, symbol_ptr_ptr, type), arelent_chain *reloc = (arelent_chain *)bfd_alloc(abfd, sizeof(arelent_chain)); - reloc->relent.section = (asection *)NULL; +/* reloc->relent.section = (asection *)NULL;*/ reloc->relent.addend = 0; reloc->relent.sym_ptr_ptr = symbol_ptr_ptr; reloc->next = rel_section->constructor_chain; rel_section->constructor_chain = reloc; - reloc->relent.address = rel_section->size; + reloc->relent.address = rel_section->_cooked_size; /* ask the cpu which howto to use */ reloc->relent.howto = bfd_reloc_type_lookup(abfd->arch_info, BFD_RELOC_CTOR); - rel_section->size += sizeof(int *); + rel_section->_cooked_size += sizeof(int *); rel_section->reloc_count++; } -- cgit v1.1