]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
LoongArch: Support R_LARCH_TLS_DTPREL32/64 used in debug section
authormengqinggang <mengqinggang@loongson.cn>
Tue, 7 Jul 2026 18:27:02 +0000 (02:27 +0800)
committermengqinggang <mengqinggang@loongson.cn>
Fri, 10 Jul 2026 02:51:02 +0000 (10:51 +0800)
commitbfc3ac0d13b52a400aea7221603a5ac69510f471
treeb52eae39b0bc23041ae23424648ec95f3d19985d
parentad945ff8bb9aac87ad06c5e290c767096fcea538
LoongArch: Support R_LARCH_TLS_DTPREL32/64 used in debug section

Simplify R_LARCH_TLS_DTPREL32/64 relocations processing.
Return the offset to TLS block for symbol.

Change R_LARCH_TLS_DTPREL32/64 partial_inplace to false since
LoongArch uses RELA relocations.
bfd/elfnn-loongarch.c
bfd/elfxx-loongarch.c
gas/testsuite/gas/loongarch/dtprel.d [new file with mode: 0644]
gas/testsuite/gas/loongarch/dtprel.s [new file with mode: 0644]
ld/testsuite/ld-loongarch-elf/dtprel.d [new file with mode: 0644]
ld/testsuite/ld-loongarch-elf/dtprel.s [new file with mode: 0644]
ld/testsuite/ld-loongarch-elf/ld-loongarch-elf.exp