]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/elf64-ppc.c
PowerPC TPREL reloc handling
authorAlan Modra <amodra@gmail.com>
Sat, 26 Aug 2017 10:56:13 +0000 (20:26 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 26 Aug 2017 11:22:07 +0000 (20:52 +0930)
commit7c8bbca5e670b5ea44b61ff30c5c7fcec47ee405
tree4ac61df0b1b27367f5d47c71e2f7c361e2cfea5e
parent988f6b3dc615173d6d78a76ac26c109b4582da74
PowerPC TPREL reloc handling

Tidy how these are handled in PIEs.

* elf32-ppc.c (must_be_dyn_reloc): Use bfd_link_dll.  Comment.
(ppc_elf_check_relocs): Only set DF_STATIC_TLS in shared libs.
(ppc_elf_relocate_section): Comment fix.
* elf64-ppc.c (must_be_dyn_reloc): Use bfd_link_dll.  Comment.
(ppc64_elf_check_relocs): Only set DF_STATIC_TLS in shared libs.
Support dynamic relocs for TPREL16 when non-pic too.
(dec_dynrel_count): Adjust TPREL16 handling as per check_relocs.
(ppc64_elf_relocate_section): Support dynamic relocs for TPREL16
when non-pic too.
bfd/ChangeLog
bfd/elf32-ppc.c
bfd/elf64-ppc.c