diff options
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf64-ppc.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e9dc06f..dee86ea 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2006-10-01 Alan Modra <amodra@bigpond.net.au> + + * elf64-ppc.c (ppc64_elf_build_stubs): Test glink size for + existence of PLT. + 2006-09-29 H.J. Lu <hongjiu.lu@intel.com> PR ld/3283 diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 6917623..d87a1b2 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; |