* elf64-ppc.c (ppc64_elf_build_stubs): Test glink size for

existence of PLT.
This commit is contained in:
Alan Modra 2006-10-01 13:59:21 +00:00
parent bac25e5b7a
commit 23eb7e01cf
2 changed files with 6 additions and 1 deletions

View 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

View 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;