]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PR ld/11088
authorAlan Modra <amodra@gmail.com>
Thu, 17 Dec 2009 00:08:01 +0000 (00:08 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 17 Dec 2009 00:08:01 +0000 (00:08 +0000)
* elf64-ppc.c (ppc64_elf_gc_sweep_hook): Don't abort if symbol
hiding has nulled out plt.plist.

bfd/ChangeLog
bfd/elf64-ppc.c

index 6c671a26218d299270851041ee47095c0b96b3e7..da978448aef63f3725bd8295a71b59ec9022af45 100644 (file)
@@ -1,3 +1,9 @@
+2009-12-17  Alan Modra  <amodra@bigpond.net.au>
+
+       PR ld/11088
+       * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Don't abort if symbol
+       hiding has nulled out plt.plist.
+
 2009-12-03  Alan Modra  <amodra@bigpond.net.au>
 
        PR ld/11047
index 8052c9c08b52473c58e571b2232c9580c2ffc641..dffce403d856fe07565414c1d50e9978d47e3151 100644 (file)
@@ -5866,9 +5866,7 @@ ppc64_elf_gc_sweep_hook (bfd *abfd, struct bfd_link_info *info,
              for (ent = h->plt.plist; ent != NULL; ent = ent->next)
                if (ent->addend == rel->r_addend)
                  break;
-             if (ent == NULL)
-               abort ();
-             if (ent->plt.refcount > 0)
+             if (ent != NULL && ent->plt.refcount > 0)
                ent->plt.refcount -= 1;
            }
          break;