Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests/nolibc: always build sparc32 tests with -mcpu=v8

Since LLVM commit 39e30508a7f6 ("[Driver][Sparc] Default to -mcpu=v9 for
32-bit Linux/sparc64 (#109278)"), clang defaults to -mcpu=v9 for 32-bit
SPARC builds. -mcpu=v9 generates instructions which are not recognized
by qemu-sparc and qemu-system-sparc.

Explicitly enforce -mcpu=v8 to generate compatible code.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://patch.msgid.link/20260106-nolibc-sparc32-fix-v2-1-7c5cd6b175c2@weissschuh.net

+1 -1
+1 -1
tools/testing/selftests/nolibc/Makefile.nolibc
··· 226 226 CFLAGS_mips64le = -EL -mabi=64 -march=mips64r6 227 227 CFLAGS_mips64be = -EB -mabi=64 -march=mips64r2 228 228 CFLAGS_loongarch = $(if $(LLVM),-fuse-ld=lld) 229 - CFLAGS_sparc32 = $(call cc-option,-m32) 229 + CFLAGS_sparc32 = $(call cc-option,-m32) -mcpu=v8 230 230 CFLAGS_sh4 = -ml -m4 231 231 ifeq ($(origin XARCH),command line) 232 232 CFLAGS_XARCH = $(CFLAGS_$(XARCH))