* elf64-ppc.c (ppc64_elf_relocate_section): Don't use a plt stub

when !can_plt_call.
This commit is contained in:
Alan Modra 2005-07-12 12:03:57 +00:00
parent 70961b9d70
commit 15b552e906
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-07-12 Alan Modra <amodra@bigpond.net.au>
* elf64-ppc.c (ppc64_elf_relocate_section): Don't use a plt stub
when !can_plt_call.
2005-07-12 Alan Modra <amodra@bigpond.net.au>
* elf32-xtensa.c (bfd_elf_xtensa_reloc): Warning fix.

View File

@ -9998,6 +9998,8 @@ ppc64_elf_relocate_section (bfd *output_bfd,
br = bfd_get_32 (input_bfd, contents + rel->r_offset);
if ((br & 1) == 0)
can_plt_call = TRUE;
else
stub_entry = NULL;
}
else if (h != NULL
&& strcmp (h->elf.root.root.string,