tools/nolibc: simplify stackprotector compiler flags
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 21 May 2023 09:36:35 +0000 (11:36 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 9 Jun 2023 18:46:08 +0000 (11:46 -0700)
commit0093c2dae8d37595c3c7fcc626b51300699a003b
treef82d7ef26276d0168f1952fe442284f10b1f1207
parent818924d1295ea16db267ea6defe08b21243583b6
tools/nolibc: simplify stackprotector compiler flags

Now that nolibc enable stackprotector support automatically when the
compiler enables it we only have to get the -fstack-protector flags
correct.

The cc-options are structured so that -fstack-protector-all is only
enabled if -mstack-protector=guard works, as that is the only mode
supported by nolibc.

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