tools/nolibc: tests: fold in no-stack-protector cflags
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 25 Mar 2023 15:45:13 +0000 (16:45 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 27 Mar 2023 23:26:10 +0000 (16:26 -0700)
commit255ffeee718d4ba9c4e9ae05df980bb32f509046
tree7e9b411a17e3bf44daf0fdd43a6c7ef2012277ea
parent7188d4637e95b9becde246fa08bb419a3b080f9b
tools/nolibc: tests: fold in no-stack-protector cflags

For the cflags to enable stack protectors to work properly they need to
be specified after -fno-stack-protector.

To do this fold all cflags into a single variable and move
-fno-stack-protector before the arch-specific cflags and another
one specific to stack protectors since we don't want to enable them
on all archs.

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