aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilly Tarreau <w@1wt.eu>2023-06-07 22:28:58 +0200
committerWilly Tarreau <w@1wt.eu>2023-06-09 19:28:12 +0200
commit2d57877debf26317e367b9176d52092cc3556378 (patch)
tree773d43a94870357669725b0f1fcec120266fa78f
parent2060da8d4d0c0af8fb1e834b4a10a2493eecc7f3 (diff)
downloadlinux-nolibc-20230609-nolibc-rv32+stkp8-rebased.tar.gz
selftests/nolibc: make sure gcc always use little endian on MIPS20230609-nolibc-rv32+stkp8-rebased
The test on MIPS stopped working after I upgraded some of my toolchains to use the ones from kernel.org because the mips toolchain defaults to big endian, even though it supports both endians. Let's just add an explicit -EL to make sure it always succeeds like the kernel does. Signed-off-by: Willy Tarreau <w@1wt.eu>
-rw-r--r--tools/testing/selftests/nolibc/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile
index 4a3a105e1fdf7e..1b7b3c82f8add3 100644
--- a/tools/testing/selftests/nolibc/Makefile
+++ b/tools/testing/selftests/nolibc/Makefile
@@ -77,6 +77,7 @@ Q=@
endif
CFLAGS_s390 = -m64
+CFLAGS_mips = -EL
CFLAGS_STACKPROTECTOR ?= $(call cc-option,-mstack-protector-guard=global $(call cc-option,-fstack-protector-all))
CFLAGS ?= -Os -fno-ident -fno-asynchronous-unwind-tables -std=c89 \
$(call cc-option,-fno-stack-protector) \