summaryrefslogtreecommitdiff
path: root/bfd/elf64-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2009-12-17 00:07:38 +0000
committerAlan Modra <amodra@bigpond.net.au>2009-12-17 00:07:38 +0000
commitab111a14d90d02c688f170d6bb0f3aa16e44333c (patch)
tree4bd8f80de443ab05a3e4a614c8c128ec82fdb522 /bfd/elf64-ppc.c
parente7e302f8be51e2d7158a0e9aee2047e08b998501 (diff)
downloadgdb-ab111a14d90d02c688f170d6bb0f3aa16e44333c.tar.gz
PR ld/11088
* elf64-ppc.c (ppc64_elf_gc_sweep_hook): Don't abort if symbol hiding has nulled out plt.plist.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r--bfd/elf64-ppc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index a181c282763..cb8ded137d1 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -5864,9 +5864,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;