]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
LoongArch: Use more appropriate assertions for the relocation of TLS LE
authorLulu Cai <cailulu@loongson.cn>
Tue, 16 Sep 2025 06:26:19 +0000 (14:26 +0800)
committercailulu <cailulu@loongson.cn>
Fri, 19 Sep 2025 02:37:21 +0000 (10:37 +0800)
commit87961e47c3666d0527b8ce60e56617e63db0a6c4
tree3e914074f3843deb40bf219a64cb6250171af64e
parent8b89f66d8a5deac411bf2cd1a8468054667e6ee5
LoongArch: Use more appropriate assertions for the relocation of TLS LE

PR ld/33427

Patches introduced in the GCC mainline:

commit 8cad8f94b450be9b73d07bdeef7fa1778d3f2b96
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Fri Sep 5 15:40:51 2025 -0700

    c: Update TLS model after processing a TLS variable

    Set a tentative TLS model in grokvardecl and update TLS mode with
    the default TLS access model after a TLS variable has been fully
    processed if the default TLS access model is stronger,

triggered a linker error when building glibc using build-many-glibcs.py.

See: https://sourceware.org/pipermail/binutils/2025-September/144225.html

This fix uses more appropriate assertions.
bfd/elfnn-loongarch.c
ld/testsuite/ld-loongarch-elf/ld-loongarch-elf.exp
ld/testsuite/ld-loongarch-elf/undefweak_le.s [new file with mode: 0644]