[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/32387] ppc64 TLS optimization bug when built with -fno-plt
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug ld/32387] ppc64 TLS optimization bug when built with -fno-plt |
Date: |
Wed, 27 Nov 2024 10:24:56 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=32387
--- Comment #11 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The binutils-2_42-branch branch has been updated by Alan Modra
<amodra@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=758a2290dbdf0d6d6c148c6cf25b2bcfd7a5b84f
commit 758a2290dbdf0d6d6c148c6cf25b2bcfd7a5b84f
Author: Alan Modra <amodra@gmail.com>
Date: Tue Nov 26 08:24:19 2024 +1030
PR32387 ppc64 TLS optimization bug with -fno-plt code
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)
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/32387] ppc64 TLS local-dynamic optimization bug when built with -fno-plt, (continued)
- [Bug ld/32387] ppc64 TLS local-dynamic optimization bug when built with -fno-plt, sam at gentoo dot org, 2024/11/23
- [Bug ld/32387] ppc64 TLS local-dynamic optimization bug when built with -fno-plt, besser82 at fedoraproject dot org, 2024/11/24
- [Bug ld/32387] ppc64 TLS local-dynamic optimization bug when built with -fno-plt, bergner at linux dot ibm.com, 2024/11/24
- [Bug ld/32387] ppc64 TLS local-dynamic optimization bug when built with -fno-plt, amodra at gmail dot com, 2024/11/25
- [Bug ld/32387] ppc64 TLS optimization bug when built with -fno-plt, amodra at gmail dot com, 2024/11/25
- [Bug ld/32387] ppc64 TLS optimization bug when built with -fno-plt, amodra at gmail dot com, 2024/11/25
- [Bug ld/32387] ppc64 TLS optimization bug when built with -fno-plt, bergner at linux dot ibm.com, 2024/11/25
- [Bug ld/32387] ppc64 TLS optimization bug when built with -fno-plt, cvs-commit at gcc dot gnu.org, 2024/11/26
- [Bug ld/32387] ppc64 TLS optimization bug when built with -fno-plt, amodra at gmail dot com, 2024/11/26
- [Bug ld/32387] ppc64 TLS optimization bug when built with -fno-plt, cvs-commit at gcc dot gnu.org, 2024/11/27
- [Bug ld/32387] ppc64 TLS optimization bug when built with -fno-plt,
cvs-commit at gcc dot gnu.org <=