aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
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;