https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97344
--- Comment #13 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by SRINATH PARVATHANENI <[email protected]>: https://gcc.gnu.org/g:97d9016b230cca98a2d5fa1baa8af59bf96357df commit r17-2093-g97d9016b230cca98a2d5fa1baa8af59bf96357df Author: Srinath Parvathaneni <[email protected]> Date: Thu Jul 2 13:51:07 2026 +0000 aarch64: Fix tls debuginfo missing location info [PR97344] This patch fixes the missing debuginfo for the TLS variables by emitting ".xword %dtprel(symbol)" along with DW_AT_location in .debug_info section. Support for the assembler directive ".xword %dtprel(symbol)" was recently introduced. To prevent assembler errors when building GCC with older versions of binutils, the patch adds a configure check that skips these changes if the assembler does not support ".xword %dtprel(symbol)". Related ABI changes are proposed here [1]. [1] https://github.com/ARM-software/abi-aa/pull/330 gcc/ChangeLog: PR target/97344 * config.in: Re-generate. * config/aarch64/aarch64.cc (aarch64_output_dwarf_dtprel): Define function. (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define macro. * configure: Re-generate. * configure.ac: Add assemler check for dtprel relocation. gcc/testsuite/ChangeLog: PR target/97344 * gcc.target/aarch64/pr97344.c: New test. * lib/target-supports.exp (aarch64_gas_has_dtprel_reloc): Add new target check.
