* ldexp.c (fold_name): Correct PR 338 fix.
authorAlan Modra <amodra@gmail.com>
Wed, 24 Nov 2004 11:30:17 +0000 (11:30 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 24 Nov 2004 11:30:17 +0000 (11:30 +0000)
ld/ChangeLog
ld/ldexp.c

index aa5b1a600d6a6b9abf59d517102112b7aef1d3a7..a0fc07ba35d102618c0a6023662ccea05575b61d 100644 (file)
@@ -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.
index ebf988ee5d521ae771e7bc5c17290a4097c329e9..cd6068cc47834ec4d559997e728c0ce70bc76b3f 100644 (file)
@@ -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);
            }
        }