From 5b89e1a00cc55ed7cccd8b7385bbf4cb13d8fe1a Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 12 Sep 1994 02:57:23 +0000 Subject: [PATCH] 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 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 011e3ff399f..80345a89fbd 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,25 @@ +Sun Sep 11 22:50:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) + + * 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. + Fri Sep 9 11:51:49 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) * coffgen.c (coff_get_symtab): Reindented. Removed commented out -- 2.30.2