diff options
author | Alan Modra <amodra@gmail.com> | 2002-08-08 00:11:37 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-08-08 00:11:37 +0000 |
commit | 0f3bd64fc55330ccefedbfb6752593e0c143172d (patch) | |
tree | 0f8d04c49ac999e06610573d1a6a4ba7a14fbfb0 /bfd | |
parent | ac0f9ca57d9619f2012ce54de5ed9c496d413645 (diff) | |
download | gdb-0f3bd64fc55330ccefedbfb6752593e0c143172d.zip gdb-0f3bd64fc55330ccefedbfb6752593e0c143172d.tar.gz gdb-0f3bd64fc55330ccefedbfb6752593e0c143172d.tar.bz2 |
* aoutx.h (aout_link_write_symbols): Correct handling of warning syms.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 4 | ||||
-rw-r--r-- | bfd/aoutx.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e3ada44..54c4ae9 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2002-08-08 Alan Modra <amodra@bigpond.net.au> + + * aoutx.h (aout_link_write_symbols): Correct handling of warning syms. + 2002-08-07 Alan Modra <amodra@bigpond.net.au> * elf64-ppc.c (edit_opd): Arrange to drop symbols for discarded .opd diff --git a/bfd/aoutx.h b/bfd/aoutx.h index 2a7b9dd..7eebb16 100644 --- a/bfd/aoutx.h +++ b/bfd/aoutx.h @@ -4211,7 +4211,8 @@ aout_link_write_symbols (finfo, input_bfd) /* Use the name from the hash table, in case the symbol was wrapped. */ - if (h != NULL) + if (h != NULL + && h->root.type != bfd_link_hash_warning) name = h->root.root.string; /* If this is an indirect or warning symbol, then change @@ -4233,7 +4234,6 @@ aout_link_write_symbols (finfo, input_bfd) /* 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->written) { if ((type & N_TYPE) == N_INDR |