diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-03-22 18:18:40 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-03-22 18:18:40 +0000 |
commit | 4335ce642d96bf45cef3d78349a56f06b0e4877a (patch) | |
tree | 2869012ff35a28e5da7b29673194d41591eb64bd /bfd/libbfd.h | |
parent | f3bc3ac3fa51daf06f545fdb714a316cc411a887 (diff) | |
download | gdb-4335ce642d96bf45cef3d78349a56f06b0e4877a.zip gdb-4335ce642d96bf45cef3d78349a56f06b0e4877a.tar.gz gdb-4335ce642d96bf45cef3d78349a56f06b0e4877a.tar.bz2 |
* linker.c (_bfd_generic_final_link): Set reloc_count to 0 before
counting relocs. Set SEC_RELOC flag for any section which has
relocs.
* linker.c (_bfd_default_link_order): Handle bfd_data_link_order.
* linker.c (_bfd_generic_link_add_symbols): Just call
generic_link_add_symbols.
(_bfd_generic_link_add_symbols_collect): New function, like
_bfd_generic_link_add_symbols but also collect constructors and
destructors by name as collect2 does.
(generic_link_add_symbols): New function, like old
_bfd_generic_link_add_symbols but with collect argument.
(generic_link_add_object_symbols): Take collect argument.
(generic_link_check_archive_element_no_collect): New function.
(generic_link_check_archive_element_collect): New function.
(generic_link_check_archive_element): Take collect argument.
(generic_link_add_symbol_list): Take collect argument.
(_bfd_generic_link_add_one_symbol): Rename constructor argument to
collect.
* libbfd-in.h (_bfd_generic_link_add_symbols_collect): Declare.
* libbfd.h: Rebuilt.
Diffstat (limited to 'bfd/libbfd.h')
-rw-r--r-- | bfd/libbfd.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/libbfd.h b/bfd/libbfd.h index 5a02d0f..03f8043 100644 --- a/bfd/libbfd.h +++ b/bfd/libbfd.h @@ -178,6 +178,12 @@ extern struct bfd_link_hash_table *_bfd_generic_link_hash_table_create extern boolean _bfd_generic_link_add_symbols PARAMS ((bfd *, struct bfd_link_info *)); +/* Generic add symbol routine. This version is used by targets for + which the linker must collect constructors and destructors by name, + as the collect2 program does. */ +extern boolean _bfd_generic_link_add_symbols_collect + PARAMS ((bfd *, struct bfd_link_info *)); + /* Generic archive add symbol routine. */ extern boolean _bfd_generic_link_add_archive_symbols PARAMS ((bfd *, struct bfd_link_info *, |