* elf64-ppc.c (get_tls_mask): Add toc_symndx param, save toc
commit2a2ef9b9e8343f3fd03262ff29e6546ffaefecec
authorAlan Modra <amodra@bigpond.net.au>
Thu, 23 Oct 2003 09:02:33 +0000 (23 09:02 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Thu, 23 Oct 2003 09:02:33 +0000 (23 09:02 +0000)
tree6dc269e3e1be7790b035b6d9576022e51f3eb6f7
parent4b97a0ebea592efecd0caaa24ffe59d862deaec1
* 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