kbuild: Remove stack protector flags

-fstack-protector-strong is controlled by the in-tree
CONFIG_STACKPROTECTOR_STRONG config option.  If the flag is set without
the config option, scst fails to build:
ERROR: modpost: "__stack_chk_fail" [scst/src/scst.ko] undefined!

-fstack-clash-protection is disabled in the kernel's Makefile due to an
incompatibility with randomize_kstack_offset.

Fixes: 86d3d4bb1d ("kbuild: Enable additional compiler warnings")
Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
This commit is contained in:
Tony Battersby
2025-09-08 16:40:12 +03:00
committed by Gleb Chesnokov
parent 189ab46a97
commit 63f2375fe4
11 changed files with 0 additions and 22 deletions
-2
View File
@@ -14,8 +14,6 @@ ccflags-y += -Wall \
-pipe \
-g \
-grecord-gcc-switches \
-fstack-clash-protection \
-fstack-protector-strong \
-Wstrict-prototypes
obj-$(CONFIG_FCST) += fcst.o