From 23eb7e01cff866b91d2ef5fb5507c587e057c577 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sun, 1 Oct 2006 13:59:21 +0000 Subject: [PATCH] * elf64-ppc.c (ppc64_elf_build_stubs): Test glink size for existence of PLT. --- bfd/ChangeLog | 5 +++++ bfd/elf64-ppc.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e9dc06f1fd9..dee86ea263f 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2006-10-01 Alan Modra + + * elf64-ppc.c (ppc64_elf_build_stubs): Test glink size for + existence of PLT. + 2006-09-29 H.J. Lu PR ld/3283 diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 6917623b027..d87a1b20201 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -9451,7 +9451,7 @@ ppc64_elf_build_stubs (bfd_boolean emit_stub_syms, stub_sec->size = 0; } - if (htab->plt != NULL) + if (htab->glink != NULL && htab->glink->size != 0) { unsigned int indx; bfd_vma plt0; -- 2.30.2