aboutsummaryrefslogtreecommitdiff
path: root/bfd/aoutx.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-06-06 18:42:38 +0000
committerIan Lance Taylor <ian@airs.com>1994-06-06 18:42:38 +0000
commit35fee729f248d6a0bbbd9ec121c1838bfe241c81 (patch)
tree6f731c46219b3f84d57cad0e077315c9ec6e3039 /bfd/aoutx.h
parent469984d1f66a2e91f530aa266759ae8d8d1abf8b (diff)
downloadgdb-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/aoutx.h')
-rw-r--r--bfd/aoutx.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/bfd/aoutx.h b/bfd/aoutx.h
index 3600829..2af2d19 100644
--- a/bfd/aoutx.h
+++ b/bfd/aoutx.h
@@ -2854,8 +2854,11 @@ NAME(aout,link_hash_newfunc) (entry, table, string)
_bfd_link_hash_newfunc ((struct bfd_hash_entry *) ret,
table, string));
if (ret)
- /* Set local fields. */
- ret->indx = -1;
+ {
+ /* Set local fields. */
+ ret->written = false;
+ ret->indx = -1;
+ }
return (struct bfd_hash_entry *) ret;
}
@@ -3726,7 +3729,7 @@ aout_link_write_symbols (finfo, input_bfd, symbol_map)
/* If the symbol has already been written out, skip it. */
if (h != (struct aout_link_hash_entry *) NULL
&& h->root.type != bfd_link_hash_warning
- && h->root.written)
+ && h->written)
{
if ((type & N_TYPE) == N_INDR)
skip_indirect = true;
@@ -3756,7 +3759,7 @@ aout_link_write_symbols (finfo, input_bfd, symbol_map)
if (skip)
{
if (h != (struct aout_link_hash_entry *) NULL)
- h->root.written = true;
+ h->written = true;
continue;
}
@@ -3855,7 +3858,7 @@ aout_link_write_symbols (finfo, input_bfd, symbol_map)
it is a local symbol see if we should discard it. */
if (h != (struct aout_link_hash_entry *) NULL)
{
- h->root.written = true;
+ h->written = true;
h->indx = obj_aout_external_sym_count (output_bfd);
}
else
@@ -3965,10 +3968,10 @@ aout_link_write_other_symbol (h, data)
}
}
- if (h->root.written)
+ if (h->written)
return true;
- h->root.written = true;
+ h->written = true;
if (finfo->info->strip == strip_all
|| (finfo->info->strip == strip_some