* elf64-ppc.c (ppc64_elf_build_stubs): Test glink size for
authorAlan Modra <amodra@gmail.com>
Sun, 1 Oct 2006 13:59:21 +0000 (13:59 +0000)
committerAlan Modra <amodra@gmail.com>
Sun, 1 Oct 2006 13:59:21 +0000 (13:59 +0000)
existence of PLT.

bfd/ChangeLog
bfd/elf64-ppc.c

index e9dc06f1fd9903630be512205f25a3950008beaf..dee86ea263fc8f6b327f6b1c46fc48100637d36f 100644 (file)
@@ -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
index 6917623b02702fcbfa70d3f131f7625523c5b8aa..d87a1b2020103cc755efacc53509c4869064312b 100644 (file)
@@ -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;