https://sourceware.org/bugzilla/show_bug.cgi?id=28351
Sam James <sam at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
Target Milestone|--- |2.47
See Also| |https://github.com/llvm/llv
| |m-project/pull/183962,
| |https://github.com/llvm/llv
| |m-project/pull/146572
--- Comment #7 from Sam James <sam at gentoo dot org> ---
commit ed71fa9a44511cb8d933073f892ea041c3ff9107
Author: Shivam Gupta <[email protected]>
AuthorDate: Wed Apr 8 15:45:38 2026 +0530
Commit: Alice Carlotti <[email protected]>
CommitDate: Thu Apr 9 15:34:45 2026 +0100
aarch64: Add support for %dtprel(var) and R_AARCH64_TLS_DTPREL64
This patch allows R_AARCH64_TLS_DTPREL64 relocations in non-allocated
sections, which is required for DWARF debug information when using
Thread Local Storage. This matches the behavior in LLD.
Also a new syntax to parse dtprel operator use to describe tls
location in debug information. Please see the reference 3 below.
References:
- https://github.com/llvm/llvm-project/pull/146572
[AArch64] Support TLS variables in debug info
- https://github.com/llvm/llvm-project/pull/183962
[LLD][AArch64] Handle R_AARCH64_TLS_DTPREL64 in non-alloc sections
- https://github.com/ARM-software/abi-aa/pull/330
[AAELF64] Allow R_AARCH64_TLS_DTPREL to be used statically.
bfd/
* elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Handle
BFD_RELOC_AARCH64_TLS_DTPREL.
gas/
* config/tc-aarch64.c (s_aarch64_cons): Parse %dtprel(var) syntax.
* testsuite/gas/aarch64/tls-debug.s: New test.
* testsuite/gas/aarch64/tls-debug.d: Run the test.
ld/
* testsuite/ld-aarch64/tls-debug.s: New test.
* testsuite/ld-aarch64/tls-debug.d: Run the test.
Bug: https://sourceware.org/PR28351
Signed-off-by: Shivam Gupta <[email protected]>
Fixed for 2.47.
--
You are receiving this mail because:
You are on the CC list for the bug.