diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-06-06 18:42:38 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-06-06 18:42:38 +0000 |
commit | 35fee729f248d6a0bbbd9ec121c1838bfe241c81 (patch) | |
tree | 6f731c46219b3f84d57cad0e077315c9ec6e3039 /bfd/linker.c | |
parent | 469984d1f66a2e91f530aa266759ae8d8d1abf8b (diff) | |
download | gdb-35fee729f248d6a0bbbd9ec121c1838bfe241c81.zip gdb-35fee729f248d6a0bbbd9ec121c1838bfe241c81.tar.gz gdb-35fee729f248d6a0bbbd9ec121c1838bfe241c81.tar.bz2 |
* libaout.h (struct aout_link_hash_entry): New field written.
* aoutx.h (NAME(aout,link_hash_newfunc)): Initialize written.
(aout_link_write_symbols): Use written, not root.written.
(aout_link_write_other_symbol): Likewise.
* sunos.c (sunos_scan_dynamic_symbol): Likewise.
* libecoff.h (struct ecoff_link_hash_entry): New field written.
* ecoff.c (ecoff_link_hash_newfunc): Initialize written.
(ecoff_link_write_external): use written, not root.written.
* genlink.h (struct generic_link_hash_entry): New field written.
* linker.c (_bfd_link_hash_newfunc): Don't initialize written.
(generic_link_hash_newfunc): Initialize written.
(_bfd_generic_link_output_symbols): Use written, not root.written.
(_bfd_generic_link_write_global_symbol): Likewise.
(_bfd_generic_reloc_link_order): Likewise.
Diffstat (limited to 'bfd/linker.c')
-rw-r--r-- | bfd/linker.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bfd/linker.c b/bfd/linker.c index 2c6754b..7d5e4ed 100644 --- a/bfd/linker.c +++ b/bfd/linker.c @@ -469,7 +469,6 @@ _bfd_link_hash_newfunc (entry, table, string) { /* Initialize the local fields. */ ret->type = bfd_link_hash_new; - ret->written = false; ret->next = NULL; } @@ -583,6 +582,7 @@ generic_link_hash_newfunc (entry, table, string) if (ret) { /* Set local fields. */ + ret->written = false; ret->sym = NULL; } @@ -1930,7 +1930,7 @@ _bfd_generic_link_output_symbols (output_bfd, input_bfd, info, psymalloc) if (! generic_add_output_symbol (output_bfd, psymalloc, sym)) return false; if (h != (struct generic_link_hash_entry *) NULL) - h->root.written = true; + h->written = true; } } @@ -1949,10 +1949,10 @@ _bfd_generic_link_write_global_symbol (h, data) (struct generic_write_global_symbol_info *) data; asymbol *sym; - if (h->root.written) + if (h->written) return true; - h->root.written = true; + h->written = true; if (wginfo->info->strip == strip_all || (wginfo->info->strip == strip_some @@ -2061,7 +2061,7 @@ _bfd_generic_reloc_link_order (abfd, info, sec, link_order) link_order->u.reloc.p->u.name, false, false, true); if (h == (struct generic_link_hash_entry *) NULL - || ! h->root.written) + || ! h->written) { if (! ((*info->callbacks->unattached_reloc) (info, link_order->u.reloc.p->u.name, |