PR ld/11217
authorAlan Modra <amodra@gmail.com>
Mon, 25 Jan 2010 06:47:16 +0000 (06:47 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 25 Jan 2010 06:47:16 +0000 (06:47 +0000)
commit766bc6567a42d77ac24103c5f7b9e14aaab81bba
tree6cb67fa0f34112fa7ee7a91847c496fdc9067e55
parentd2c7a1a63b98c1add3d78ba71ffa9f2a105c1cd4
PR ld/11217
* elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences
with relocations against undefined weak symbols.
(ppc64_elf_relocate_section): Don't optimize calls to undefined
weak functions if the symbol is dynamic.
(ppc64_elf_relocate_section): Edit tprel tls sequences.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
(_bfd_elf_ppc_at_tprel_transform): New function.
* bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare.
* bfd-in2.h: Regenerate.
bfd/ChangeLog
bfd/bfd-in.h
bfd/bfd-in2.h
bfd/elf32-ppc.c
bfd/elf64-ppc.c