]> Gentwo Git Trees - linux/.git/commit
selftests/nolibc: use lld to link loongarch binaries
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 22 Nov 2025 11:01:57 +0000 (12:01 +0100)
committerThomas Weißschuh <linux@weissschuh.net>
Sat, 22 Nov 2025 11:35:02 +0000 (12:35 +0100)
commit682bf67529fd9d63a94af658b779f9cce549c6d1
treeddc6a467ae437d8485a8ee9bc116e46b281f719c
parent31b4d3af63f9afcb2661b9be554f0cf55c86573b
selftests/nolibc: use lld to link loongarch binaries

LLVM 21 switched to -mcmodel=medium for LoongArch64 compilations.
This code model uses R_LARCH_ECALL36 relocations which might not be
supported by GNU ld which to nolibc testsuite uses by default.
ld will not resolve the relocation and all function calls will end up
as busy loops.

Use lld instead.

We can not switch to lld for all LLVM builds, as it does not support all
necessary architectures.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
tools/testing/selftests/nolibc/Makefile.nolibc