[lld] [LLD][AArch64] Handle R_AARCH64_TLS_DTPREL64 in non-alloc sections (PR #183962)
Peter Smith via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 2 06:31:11 PST 2026
smithp35 wrote:
If it helps the original ABI issue https://github.com/ARM-software/abi-aa/issues/176 took inspiration from x86_64 which emits R_X86_64_DTPOFF64 against a DWARF location `DW_AT_location (DW_OP_const8u 0x0, DW_OP_form_tls_address)`
Our GNU community recieved a request for something similar (assembler expression) https://sourceware.org/bugzilla/show_bug.cgi?id=28351 which claims as a pre-requisite for GDB support.
I tried to see if I could examine the location of a TLS variable on an AArch64 in qemu-user mode without DW_AT_location (works on x86), but it seems like qemu user mode doesn't implement enough of the remote protocol. If I get time this evening I'll try on hardware.
https://github.com/llvm/llvm-project/pull/183962
More information about the llvm-commits
mailing list