PowerPC64 localentry:0 plt calls
authorAlan Modra <amodra@gmail.com>
Wed, 21 Jun 2017 05:33:25 +0000 (15:03 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 21 Jun 2017 13:15:15 +0000 (22:45 +0930)
commit6e1816be66892d06e1a983f08407135fa7f7fc17
tree0a2d291a1e35252d38fee88b05a438d43b07311b
parent81209eff905bf76a01bbc3dc07b8973d1d0cdaad
PowerPC64 localentry:0 plt calls

These don't need a following nop.  Also, a localentry:0 plt call
marked with an R_PPC64_TOCSAVE reloc should ignore the tocsave.
There's no need to save r2 in the prologue for such calls.

* elf64-ppc.c (ppc64_elf_size_stubs): Test for localentry:0 plt
calls before tocsave calls.
(ppc64_elf_relocate_section): Allow localentry:0 plt calls without
following nop.
bfd/ChangeLog
bfd/elf64-ppc.c