[1/3] Revert "EXP: tools/nolibc: partially revert stackprotector compiler flags"
Commit Message
This reverts commit 8213b0cdb51d1f66af713e00fd0dff3c2eb47636.
A nicer solution for the same problem is implemented later in this series.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
tools/testing/selftests/nolibc/Makefile | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)
@@ -76,20 +76,11 @@ else
Q=@
endif
-CFLAGS_STACKPROTECTOR = $(call cc-option,-mstack-protector-guard=global) \
- $(call cc-option,-fstack-protector-all)
-CFLAGS_STKP_i386 = $(CFLAGS_STACKPROTECTOR)
-CFLAGS_STKP_x86_64 = $(CFLAGS_STACKPROTECTOR)
-CFLAGS_STKP_x86 = $(CFLAGS_STACKPROTECTOR)
-CFLAGS_STKP_arm64 = $(CFLAGS_STACKPROTECTOR)
-CFLAGS_STKP_arm = $(CFLAGS_STACKPROTECTOR)
-CFLAGS_STKP_mips = $(CFLAGS_STACKPROTECTOR)
-CFLAGS_STKP_riscv = $(CFLAGS_STACKPROTECTOR)
-CFLAGS_STKP_loongarch = $(CFLAGS_STACKPROTECTOR)
CFLAGS_s390 = -m64
CFLAGS ?= -Os -fno-ident -fno-asynchronous-unwind-tables -std=c89 \
$(call cc-option,-fno-stack-protector) \
- $(CFLAGS_STKP_$(ARCH)) $(CFLAGS_$(ARCH))
+ $(call cc-option,-mstack-protector-guard=global $(call cc-option,-fstack-protector-all)) \
+ $(CFLAGS_$(ARCH))
LDFLAGS := -s
help: