aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2024-11-26 08:24:19 +1030
committerAlan Modra <amodra@gmail.com>2024-11-27 08:52:24 +1030
commit758a2290dbdf0d6d6c148c6cf25b2bcfd7a5b84f (patch)
tree288a1f6f720a3ce25bae58a9e607edb1fb5fd35f /ld
parented489bf157498b9f0a68cd288caf57b820ba89e1 (diff)
downloadgdb-binutils-2_42-branch.zip
gdb-binutils-2_42-branch.tar.gz
gdb-binutils-2_42-branch.tar.bz2
PR32387 ppc64 TLS optimization bug with -fno-plt codebinutils-2_42-branch
The inline plt code emitted by gcc is incompatible with the linker/ld.so --tls-get-addr-optimize scheme. This is the runtime optimisation where the first call to __tls_get_addr results in __tls_get_addr updating the tls_index pair, then the special linker stub using that to short-circuit second and subsequent calls for a given tls symbol. Enabled by default when the linker sees __tls_get_addr_opt is preseent, and enabled in ld.so when DT_PPC64_OPT has PPC64_OPT_TLS set. Note that this is distinct from link-time tls optimisation. PR 32387 * elf64-ppc.c (ppc64_elf_check_relocs): Disable tls_get_addr_opt on detecting inline plt calls to __tls_get_addr. (cherry picked from commit 1686dc7079f1c03bdaffd2f779b92aa2b7ad97b5)
Diffstat (limited to 'ld')
0 files changed, 0 insertions, 0 deletions