Get the new COFF linker code working for i386-lynx.
authorIan Lance Taylor <ian@airs.com>
Mon, 12 Sep 1994 02:57:23 +0000 (02:57 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 12 Sep 1994 02:57:23 +0000 (02:57 +0000)
commit5b89e1a00cc55ed7cccd8b7385bbf4cb13d8fe1a
tree21fd71e90e2d5b14e83bc39613f1b9154bb442b7
parent7b63ff76837b7f0c0c375b30ed9913a3c3bae8a5
Get the new COFF linker code working for i386-lynx.

* cf-i386lynx.c: Remove #if 0 code.
(i386_lynxos_coff_object_p): Remove unused function.
(coff_bfd_link_add_symbols): Define.
(lynx_link_add_symbols): New static function.
* coffcode.h (coff_bfd_link_hash_table_create): If
coff_relocate_section is defined, only define this if not already
defined.
(coff_bfd_link_add_symbols, coff_bfd_final_link): Likewise.

* linker.c (_bfd_generic_final_link): Handle
bfd_indirect_link_order explicitly, rather than via
_bfd_default_link_order.
(set_symbol_from_hash): New static function, broken out of
_bfd_generic_link_write_global_symbol.
(_bfd_generic_link_write_global_symbol): Symbol setting code moved
to set_symbol_from_hash; call it.
(default_indirect_link_order): Add generic_linker argument.
Change all callers.  If false, set the generic symbols based on
the hash table entries.
bfd/ChangeLog