PR 6443
authorAlan Modra <amodra@gmail.com>
Mon, 12 May 2008 12:47:47 +0000 (12:47 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 12 May 2008 12:47:47 +0000 (12:47 +0000)
commit1d483afedd5a628dc84fb58d1d570f79fdfbfa7b
tree09ea823917d9f15bc4f54f41b9145b1a180e24d2
parentcef1fe971fc0fc51c87b64f242d49fbe2cfe5351
PR 6443
* elf32-ppc.c (MUST_BE_DYN_RELOC): Delete.
(must_be_dyn_reloc): New function.
(ppc_elf_check_relocs): Don't set DF_STATIC_TLS for tprel relocs
in pies.
(ppc_elf_tls_optimize): Optimise pies.
(ppc_elf_relocate_section): Use a section symbol rather than no
symbol if possible for LD->IE TLS sequence, but don't error if
we must use no symbol.
* elf64-ppc.c (MUST_BE_DYN_RELOC): As for elf32-ppc.c.
(must_be_dyn_reloc): Likewise.
(ppc64_elf_check_relocs): Likewise.
(ppc64_elf_tls_optimize): Likewise.
(ppc64_elf_relocate_section): Likewise.
bfd/ChangeLog
bfd/elf32-ppc.c
bfd/elf64-ppc.c