mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
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:
committed by
Gleb Chesnokov
parent
189ab46a97
commit
63f2375fe4
@@ -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
|
||||
|
||||
@@ -30,8 +30,6 @@ ccflags-y := -I$(src)/../include \
|
||||
-pipe \
|
||||
-g \
|
||||
-grecord-gcc-switches \
|
||||
-fstack-clash-protection \
|
||||
-fstack-protector-strong \
|
||||
-Wstrict-prototypes
|
||||
|
||||
ccflags-y += $(CONFTEST_CFLAGS)
|
||||
|
||||
@@ -35,8 +35,6 @@ ccflags-y := -I$(src)/../../../scst/include \
|
||||
-pipe \
|
||||
-g \
|
||||
-grecord-gcc-switches \
|
||||
-fstack-clash-protection \
|
||||
-fstack-protector-strong \
|
||||
-Wstrict-prototypes
|
||||
|
||||
obj-m += isert-scst.o
|
||||
|
||||
@@ -11,8 +11,6 @@ ccflags-y := -I$(src)/../scst/include \
|
||||
-pipe \
|
||||
-g \
|
||||
-grecord-gcc-switches \
|
||||
-fstack-clash-protection \
|
||||
-fstack-protector-strong \
|
||||
-Wstrict-prototypes
|
||||
|
||||
ifneq ($(CONFIG_SCSI_QLA2XXX_TARGET),)
|
||||
|
||||
@@ -14,8 +14,6 @@ ccflags-y := -I$(src)/../../scst/include \
|
||||
-pipe \
|
||||
-g \
|
||||
-grecord-gcc-switches \
|
||||
-fstack-clash-protection \
|
||||
-fstack-protector-strong \
|
||||
-Wstrict-prototypes
|
||||
|
||||
#ccflags-y += -DCONFIG_QLA_TGT_DEBUG_WORK_IN_THREAD
|
||||
|
||||
@@ -11,8 +11,6 @@ ccflags-y := -I$(src)/../scst/include \
|
||||
-pipe \
|
||||
-g \
|
||||
-grecord-gcc-switches \
|
||||
-fstack-clash-protection \
|
||||
-fstack-protector-strong \
|
||||
-Wstrict-prototypes
|
||||
|
||||
ifneq ($(CONFIG_SCSI_QLA2XXX_TARGET),)
|
||||
|
||||
@@ -14,8 +14,6 @@ ccflags-y := -I$(src)/../../scst/include \
|
||||
-pipe \
|
||||
-g \
|
||||
-grecord-gcc-switches \
|
||||
-fstack-clash-protection \
|
||||
-fstack-protector-strong \
|
||||
-Wstrict-prototypes
|
||||
|
||||
#ccflags-y += -DCONFIG_QLA_TGT_DEBUG_WORK_IN_THREAD
|
||||
|
||||
@@ -11,8 +11,6 @@ ccflags-y := -I$(src)/../include \
|
||||
-pipe \
|
||||
-g \
|
||||
-grecord-gcc-switches \
|
||||
-fstack-clash-protection \
|
||||
-fstack-protector-strong \
|
||||
-Wstrict-prototypes
|
||||
|
||||
ccflags-y += $(shell [ -n "${BUILD_DATE}" ] && echo -DSCST_BUILD_DATE=${BUILD_DATE}) \
|
||||
|
||||
@@ -13,8 +13,6 @@ ccflags-y := -I$(src)/../../include \
|
||||
-pipe \
|
||||
-g \
|
||||
-grecord-gcc-switches \
|
||||
-fstack-clash-protection \
|
||||
-fstack-protector-strong \
|
||||
-Wstrict-prototypes
|
||||
|
||||
#ccflags-y += -DCONFIG_DEBUG_EXT_COPY_REMAP
|
||||
|
||||
@@ -13,8 +13,6 @@ ccflags-y := -I$(src)/../scst/include \
|
||||
-pipe \
|
||||
-g \
|
||||
-grecord-gcc-switches \
|
||||
-fstack-clash-protection \
|
||||
-fstack-protector-strong \
|
||||
-Wstrict-prototypes
|
||||
|
||||
obj-m := scst_local.o
|
||||
|
||||
@@ -16,8 +16,6 @@ ccflags-y += -I$(src)/../../scst/include \
|
||||
-pipe \
|
||||
-g \
|
||||
-grecord-gcc-switches \
|
||||
-fstack-clash-protection \
|
||||
-fstack-protector-strong \
|
||||
-Wstrict-prototypes
|
||||
|
||||
obj-m += ib_srpt.o
|
||||
|
||||
Reference in New Issue
Block a user