aboutsummaryrefslogtreecommitdiff
path: root/ld/ldexp.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-08-18 02:45:43 +0000
committerAlan Modra <amodra@gmail.com>2004-08-18 02:45:43 +0000
commita010d60faf972bb62f0470f70c4c68cce38752ac (patch)
tree895a45c80a65071f73cfced15a48504b104bca38 /ld/ldexp.c
parent428709525848950c510553141109fb63d0afa0ad (diff)
downloadgdb-a010d60faf972bb62f0470f70c4c68cce38752ac.zip
gdb-a010d60faf972bb62f0470f70c4c68cce38752ac.tar.gz
gdb-a010d60faf972bb62f0470f70c4c68cce38752ac.tar.bz2
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.
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;