diff options
author | Alan Modra <amodra@bigpond.net.au> | 2004-08-18 02:45:43 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2004-08-18 02:45:43 +0000 |
commit | 05beee52007ee7ee9b0c8b9f1089ca26d7f843b8 (patch) | |
tree | 296aff1e9ae9db844569ed7a40f56186eb150833 /ld | |
parent | 38975ec34f47764dc61ba4292c2859b0e7ecb1bb (diff) | |
download | binutils-redhat-05beee52007ee7ee9b0c8b9f1089ca26d7f843b8.tar.gz |
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')
-rw-r--r-- | ld/ChangeLog | 6 | ||||
-rw-r--r-- | ld/ldexp.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index d96be457f8..a8b8ba4793 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2004-08-18 Alan Modra <amodra@bigpond.net.au> + + PR 338 + * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol + was already on the undefs list. + 2004-08-17 Alan Modra <amodra@bigpond.net.au> * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot diff --git a/ld/ldexp.c b/ld/ldexp.c index 06b1fa1a2e..e7587c1710 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; |