* linker.c (_bfd_generic_final_link): Set reloc_count to 0 before
authorIan Lance Taylor <ian@airs.com>
Tue, 22 Mar 1994 18:18:40 +0000 (18:18 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 22 Mar 1994 18:18:40 +0000 (18:18 +0000)
commit4335ce642d96bf45cef3d78349a56f06b0e4877a
tree2869012ff35a28e5da7b29673194d41591eb64bd
parentf3bc3ac3fa51daf06f545fdb714a316cc411a887
* 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.
bfd/ChangeLog
bfd/libbfd.h
bfd/linker.c