diff options
author | Alan Modra <amodra@gmail.com> | 2009-12-17 00:07:38 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2009-12-17 00:07:38 +0000 |
commit | 7c6c17221fc394471ce7e793ad4a636a55a80f16 (patch) | |
tree | 19844556f2acb041f25e0d75f6f023b7aeb28261 /bfd/elf64-ppc.c | |
parent | 6e8144b75f5fddf714ede7a2464907bd9c981695 (diff) | |
download | fsf-binutils-gdb-7c6c17221fc394471ce7e793ad4a636a55a80f16.zip fsf-binutils-gdb-7c6c17221fc394471ce7e793ad4a636a55a80f16.tar.gz fsf-binutils-gdb-7c6c17221fc394471ce7e793ad4a636a55a80f16.tar.bz2 |
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.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index a181c28..cb8ded1 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; |