[PATCH 0/2] selftests/nolibc: fix loongarch build with recent versions of clang

Thomas Weißschuh posted 2 patches 1 week, 2 days ago
tools/testing/selftests/nolibc/Makefile.nolibc | 1 +
tools/testing/selftests/nolibc/run-tests.sh    | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
[PATCH 0/2] selftests/nolibc: fix loongarch build with recent versions of clang
Posted by Thomas Weißschuh 1 week, 2 days ago
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 the nolibc testsuite uses by default.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Thomas Weißschuh (2):
      selftests/nolibc: use lld to link loongarch binaries
      selftests/nolibc: error out on linker warnings

 tools/testing/selftests/nolibc/Makefile.nolibc | 1 +
 tools/testing/selftests/nolibc/run-tests.sh    | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
---
base-commit: 6059e06967aaac9bf736c6cec75b9bccaf5bbe18
change-id: 20251121-nolibc-lld-f32af4983cc0

Best regards,
-- 
Thomas Weißschuh <linux@weissschuh.net>

Re: [PATCH 0/2] selftests/nolibc: fix loongarch build with recent versions of clang
Posted by Willy Tarreau 1 week, 2 days ago
On Sat, Nov 22, 2025 at 12:01:56PM +0100, Thomas Weißschuh wrote:
> 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 the nolibc testsuite uses by default.
> 
> Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>

Both patches make sense to me, thanks Thomas!

FWIW for the whole series: Acked-by: Willy Tarreau <w@1wt.eu>

Willy