diff options
author | Alan Modra <amodra@gmail.com> | 2011-06-07 23:58:30 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2011-06-07 23:58:30 +0000 |
commit | 5b4c94ad8d69fe8314e8a855bf7cbfaf0325f0eb (patch) | |
tree | bbb0b61b94a3f47e1de5c86b78fe005a962bf7fc /ld | |
parent | 2a41f39647f1867470ccbd13f1ccc429422dde55 (diff) | |
download | gdb-5b4c94ad8d69fe8314e8a855bf7cbfaf0325f0eb.zip gdb-5b4c94ad8d69fe8314e8a855bf7cbfaf0325f0eb.tar.gz gdb-5b4c94ad8d69fe8314e8a855bf7cbfaf0325f0eb.tar.bz2 |
* ldlang.c (lang_one_common): Handle warning symbols.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 4 | ||||
-rw-r--r-- | ld/ldlang.c | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index eda589f..aebb206 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2011-06-08 Alan Modra <amodra@gmail.com> + + * ldlang.c (lang_one_common): Handle warning symbols. + 2011-06-03 Nick Clifton <nickc@redhat.com> * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32am33lin.c diff --git a/ld/ldlang.c b/ld/ldlang.c index 7cf5108..6289f2f 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -5885,6 +5885,9 @@ lang_one_common (struct bfd_link_hash_entry *h, void *info) bfd_vma size; asection *section; + if (h->type == bfd_link_hash_warning) + h = h->u.i.link; + if (h->type != bfd_link_hash_common) return TRUE; |