OSDN Git Service

* elf64-ppc.c (ppc64_elf_build_stubs): Test glink size for
authoramodra <amodra>
Sun, 1 Oct 2006 13:59:20 +0000 (13:59 +0000)
committeramodra <amodra>
Sun, 1 Oct 2006 13:59:20 +0000 (13:59 +0000)
existence of PLT.

bfd/ChangeLog
bfd/elf64-ppc.c

index e9dc06f..dee86ea 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 6917623..d87a1b2 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;