aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2011-06-07 23:58:30 +0000
committerAlan Modra <amodra@gmail.com>2011-06-07 23:58:30 +0000
commit5b4c94ad8d69fe8314e8a855bf7cbfaf0325f0eb (patch)
treebbb0b61b94a3f47e1de5c86b78fe005a962bf7fc /ld/ldlang.c
parent2a41f39647f1867470ccbd13f1ccc429422dde55 (diff)
downloadgdb-5b4c94ad8d69fe8314e8a855bf7cbfaf0325f0eb.zip
gdb-5b4c94ad8d69fe8314e8a855bf7cbfaf0325f0eb.tar.gz
gdb-5b4c94ad8d69fe8314e8a855bf7cbfaf0325f0eb.tar.bz2
* ldlang.c (lang_one_common): Handle warning symbols.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c3
1 files changed, 3 insertions, 0 deletions
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;