aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-11-24 11:30:17 +0000
committerAlan Modra <amodra@gmail.com>2004-11-24 11:30:17 +0000
commit3eda52aa3223324cb9a77b0245dbcd5bead619bd (patch)
tree133384a343c40cd66554fd35e54ede6177ee5aca /ld
parenteb129e357a5dce022c3e46e3d35d30074774e11c (diff)
downloadgdb-3eda52aa3223324cb9a77b0245dbcd5bead619bd.zip
gdb-3eda52aa3223324cb9a77b0245dbcd5bead619bd.tar.gz
gdb-3eda52aa3223324cb9a77b0245dbcd5bead619bd.tar.bz2
* ldexp.c (fold_name): Correct PR 338 fix.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/ldexp.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index aa5b1a6..a0fc07b 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2004-11-24 Alan Modra <amodra@bigpond.net.au>
+
+ * ldexp.c (fold_name): Correct PR 338 fix.
+
2004-11-19 Mark Mitchell <mark@codesourcery.com>
* Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
diff --git a/ld/ldexp.c b/ld/ldexp.c
index ebf988e..cd6068c 100644
--- a/ld/ldexp.c
+++ b/ld/ldexp.c
@@ -600,7 +600,7 @@ fold_name (etree_type *tree,
{
h->type = bfd_link_hash_undefined;
h->u.undef.abfd = NULL;
- if (h->u.undef.next == NULL)
+ if (h->u.undef.next == NULL && h != link_info.hash->undefs_tail)
bfd_link_add_undef (link_info.hash, h);
}
}