OSDN Git Service

* ldexp.c (fold_name): Correct PR 338 fix.
authoramodra <amodra>
Wed, 24 Nov 2004 11:30:15 +0000 (11:30 +0000)
committeramodra <amodra>
Wed, 24 Nov 2004 11:30:15 +0000 (11:30 +0000)
ld/ChangeLog
ld/ldexp.c

index aa5b1a6..a0fc07b 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 ebf988e..cd6068c 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);
            }
        }