aboutsummaryrefslogtreecommitdiff
path: root/ld/ldexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/ldexp.c')
-rw-r--r--ld/ldexp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/ldexp.c b/ld/ldexp.c
index 06b1fa1..e7587c1 100644
--- a/ld/ldexp.c
+++ b/ld/ldexp.c
@@ -576,7 +576,8 @@ fold_name (etree_type *tree,
{
h->type = bfd_link_hash_undefined;
h->u.undef.abfd = NULL;
- bfd_link_add_undef (link_info.hash, h);
+ if (h->und_next == NULL)
+ bfd_link_add_undef (link_info.hash, h);
}
}
break;