PowerPC64 TLS optimization fix
authorAlan Modra <amodra@gmail.com>
Wed, 22 Jan 2020 02:32:11 +0000 (13:02 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 22 Jan 2020 06:44:08 +0000 (17:14 +1030)
commitabc489c64a3137f3751797e8ce60d53a2c432e1d
tree3013677f8f4a43baa9dc013411b280a51d6d1dac
parentc48acf6f26713427fb6870a8551a89ac12838e7b
PowerPC64 TLS optimization fix

When linking with --no-tls-optimize the linker doesn't generate a call
or long branch stub to __tls_get_addr in some circumstances, giving:

relocation truncated to fit: R_PPC64_REL24 against symbol `__tls_get_addr'

* elf64-ppc.c (ppc64_elf_size_stubs): Correct condition under
which __tls_get_addr calls will be eliminated.
bfd/ChangeLog
bfd/elf64-ppc.c