[lld] [LLD][AArch64] Handle R_AARCH64_TLS_DTPREL64 in non-alloc sections (PR #183962)

Shivam Gupta via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 10 03:49:55 PDT 2026


xgupta wrote:


> There may be an advantage in clang not using the Dwarf expression for preemptible global TLS variables. I note that the definition of the `DW_OP_form_tls_address` will always give the offset of the variable from the "modules" TLS block which if the symbol is preempted will give the wrong value. I can confirm that with an example in gdb.

Hi @smithp35 can you please share the example when it gets wrong, someone object to adding the check that forbid emitting DW_AT_location on clang patch.

https://github.com/llvm/llvm-project/pull/183962


More information about the llvm-commits mailing list