diff options
-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; |