* elf64-ppc.c (get_tls_mask): Add toc_symndx param, save toc
authorAlan Modra <amodra@gmail.com>
Thu, 23 Oct 2003 09:02:33 +0000 (09:02 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 23 Oct 2003 09:02:33 +0000 (09:02 +0000)
commit0d4792f716ceaa86e4069e0e7b69f9f2037e591e
tree2e3eb728e6db236ab180a5b3b29d1ddd17b49dde
parent68eb2996721f1da341160c06313b9bdc48df8c2f
* elf64-ppc.c (get_tls_mask): Add toc_symndx param, save toc
reloc symbol index to it.  Don't allow gd syms in shared libs
to be optimized.
(ppc64_elf_tls_optimize): Adjust get_tls_mask call.
(ppc64_elf_size_stubs): Likewise.
(ppc64_elf_relocate_section): Check that tls relocs are only used
with tls syms, and similarly for non-tls.  Correct symbol used
when optimizing toc tls code.
bfd/ChangeLog
bfd/elf64-ppc.c