aboutsummaryrefslogtreecommitdiff
path: root/bfd/ctor.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/ctor.c')
-rw-r--r--bfd/ctor.c6
1 files changed, 3 insertions, 3 deletions
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++;
}