aboutsummaryrefslogtreecommitdiff
path: root/bfd/ctor.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1992-05-26 03:45:31 +0000
committerKen Raeburn <raeburn@cygnus>1992-05-26 03:45:31 +0000
commit8070f29df5b169072265c0a50710f38850d4206c (patch)
treec216b6384991b67e23b488852bb4638131614519 /bfd/ctor.c
parent20edaa8e7791b9c33fa1a6abbca7bec3df4564ca (diff)
downloadgdb-8070f29df5b169072265c0a50710f38850d4206c.zip
gdb-8070f29df5b169072265c0a50710f38850d4206c.tar.gz
gdb-8070f29df5b169072265c0a50710f38850d4206c.tar.bz2
Lots of changes from gas-bfd work. Includes:
* working reloc lookup support * better support for creation of COFF files from scratch * misc doc changes, macro tweaks, "const" additions, typo fixes, etc. * one or two ugly kludges that should get cleaned up (but what's one or two more, in BFD?) See ChangeLog for details.
Diffstat (limited to 'bfd/ctor.c')
-rw-r--r--bfd/ctor.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/bfd/ctor.c b/bfd/ctor.c
index d81df61..0550aa8 100644
--- a/bfd/ctor.c
+++ b/bfd/ctor.c
@@ -140,9 +140,7 @@ void DEFUN(bfd_constructor_entry,(abfd, symbol_ptr_ptr, type),
rel_section->constructor_chain = reloc;
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);
+ reloc->relent.howto = bfd_reloc_type_lookup(abfd, BFD_RELOC_CTOR);
rel_section->_cooked_size += sizeof(int *);
rel_section->reloc_count++;
}