|
@@ -72,7 +72,7 @@ endif
|
|
|
|
|
|
ifdef CONFIG_CC_STACKPROTECTOR
|
|
ifdef CONFIG_CC_STACKPROTECTOR
|
|
cc_has_sp := $(srctree)/scripts/gcc-x86_$(BITS)-has-stack-protector.sh
|
|
cc_has_sp := $(srctree)/scripts/gcc-x86_$(BITS)-has-stack-protector.sh
|
|
- ifeq ($(shell $(CONFIG_SHELL) $(cc_has_sp) $(CC)),y)
|
|
|
|
|
|
+ ifeq ($(shell $(CONFIG_SHELL) $(cc_has_sp) $(CC) $(biarch)),y)
|
|
stackp-y := -fstack-protector
|
|
stackp-y := -fstack-protector
|
|
stackp-$(CONFIG_CC_STACKPROTECTOR_ALL) += -fstack-protector-all
|
|
stackp-$(CONFIG_CC_STACKPROTECTOR_ALL) += -fstack-protector-all
|
|
KBUILD_CFLAGS += $(stackp-y)
|
|
KBUILD_CFLAGS += $(stackp-y)
|