]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
LoongArch: Use more appropriate assertions for the relocation of TLS LE binutils-2_43-branch
authorLulu Cai <cailulu@loongson.cn>
Mon, 24 Nov 2025 10:03:47 +0000 (18:03 +0800)
committercailulu <cailulu@loongson.cn>
Tue, 25 Nov 2025 01:55:37 +0000 (09:55 +0800)
commit94e722179949b307f8f8560634dd5c878aee54a3
tree6af36641a43c16188372104f7a5b1c63fb829872
parent430bb75294ec6ae84355337e63d299527a00a34f
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.

(cherry picked from commit 87961e47c3666d0527b8ce60e56617e63db0a6c4)
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]