From a010d60faf972bb62f0470f70c4c68cce38752ac Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 18 Aug 2004 02:45:43 +0000 Subject: PR 338 * elflink.c (bfd_elf_record_link_assignment): Add comment about changing bfd_link_hash_undefined to bfd_link_hash_new. * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol was already on the undefs list. --- ld/ldexp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ld/ldexp.c') diff --git a/ld/ldexp.c b/ld/ldexp.c index 06b1fa1a2e2..e7587c17100 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; -- cgit v1.2.1