ipq5018: Enable stack protection

Change-Id: I1142c32d5c725a188929848d84bb7642ed1c66c9
Signed-off-by: Vandhiadevan <vkarunam@codeaurora.org>
This commit is contained in:
Vandhiadevan 2019-11-18 14:39:12 +05:30
parent 4ae7d14b9d
commit f0226f2e93

View file

@ -569,10 +569,15 @@ endif
ifdef CONFIG_ARCH_IPQ807x
KBUILD_CFLAGS += $(call cc-option,-fstack-protector)
else
KBUILD_CFLAGS += $(call cc-option, -fno-stack-protector)
endif
ifdef CONFIG_ARCH_IPQ5018
KBUILD_CFLAGS += $(call cc-option,-fstack-protector)
else
ifdef CONFIG_ARCH_IPQ6018
KBUILD_CFLAGS += $(call cc-option,-fstack-protector)
else
KBUILD_CFLAGS += $(call cc-option, -fno-stack-protector)
endif
endif
endif
KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks)