diff options
author | Alan Modra <amodra@bigpond.net.au> | 2007-07-24 23:38:13 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2007-07-24 23:38:13 +0000 |
commit | 5c37af7c422647e4f5c20271d6f14ab715ce02a0 (patch) | |
tree | b0c148b4c4dbdb69c44ea860201b121971e555c7 /bfd/linker.c | |
parent | 09482ecfb5fee69165158fbd12f798cba5aea076 (diff) | |
download | binutils-redhat-5c37af7c422647e4f5c20271d6f14ab715ce02a0.tar.gz |
warning fix
Diffstat (limited to 'bfd/linker.c')
-rw-r--r-- | bfd/linker.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bfd/linker.c b/bfd/linker.c index 8d0925fbb1..f547a752a1 100644 --- a/bfd/linker.c +++ b/bfd/linker.c @@ -1316,7 +1316,7 @@ generic_link_add_symbol_list (bfd *abfd, struct generic_link_hash_entry *h; struct bfd_link_hash_entry *bh; - name = bfd_asymbol_name (p); + string = name = bfd_asymbol_name (p); if (((p->flags & BSF_INDIRECT) != 0 || bfd_is_ind_section (p->section)) && pp + 1 < ppend) @@ -1329,12 +1329,9 @@ generic_link_add_symbol_list (bfd *abfd, { /* The name of P is actually the warning string, and the next symbol is the one to warn about. */ - string = name; pp++; name = bfd_asymbol_name (*pp); } - else - string = NULL; bh = NULL; if (! (_bfd_generic_link_add_one_symbol |