]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
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, 29 Jan 2020 00:41:36 +0000 (11:11 +1030)
commita2bf3f0c65c753e0cee04eda542a6e9cedfa32ec
treee41061320472d2573fe9ea696eed75c038d4f83c
parenta6977a7e115bc548ed917cd685b1e7dbd6178373
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.

(cherry picked from commit abc489c64a3137f3751797e8ce60d53a2c432e1d)
bfd/ChangeLog
bfd/elf64-ppc.c