]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
PowerPC64 GOT reloc optimisation
authorAlan Modra <amodra@gmail.com>
Thu, 16 Apr 2020 01:13:25 +0000 (10:43 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 16 Apr 2020 06:09:48 +0000 (15:39 +0930)
commit06507dab6172582d3924a3d7dc92a9e7d4ab60ff
tree688850722876dc681d649a397d610eed8dc07ada
parent937f6614685b83c67574d6549cea431b2069dfd8
PowerPC64 GOT reloc optimisation

When the symbol referenced by a GOT reloc is an ifunc, we can't
optimise away the GOT indirection.  Well, we can, but only if a global
entry stub is created with the ifunc symbol redefined to the stub.
But that results in slower code and an indirection via the PLT so
there isn't much to like about that solution.

* elf64-ppc.c (ppc64_elf_edit_toc): Exclude ifunc from GOT
optimisation.
(ppc64_elf_relocate_section): Likewise.
bfd/elf64-ppc.c