selftests/nolibc: make sure gcc always use little endian on MIPS
authorWilly Tarreau <w@1wt.eu>
Wed, 7 Jun 2023 20:28:58 +0000 (22:28 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 9 Jun 2023 18:46:10 +0000 (11:46 -0700)
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>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/testing/selftests/nolibc/Makefile

index 4a3a105e1fdf7e46e24738ceb2553eb5f59bf4a5..1b7b3c82f8add325367ddd47c80a215f1ae10ee1 100644 (file)
@@ -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) \