From 8aef0ad840f4bb620c9795e2bd4062f863689d9e Mon Sep 17 00:00:00 2001 From: Md Sadre Alam Date: Fri, 3 May 2019 15:45:20 +0530 Subject: [PATCH] Makefile: Enable Stack protector flag This change will enable stack protector for u-boot code for ipq807x. Change-Id: Iea28c20efa3bf582728e8a0099f01c8f93595ff6 Signed-off-by: Md Sadre Alam --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e2fe97ddc4..9bb51c69b9 100644 --- a/Makefile +++ b/Makefile @@ -566,7 +566,11 @@ ifdef BUILD_TAG KBUILD_CFLAGS += -DBUILD_TAG='"$(BUILD_TAG)"' endif -KBUILD_CFLAGS += $(call cc-option,-fno-stack-protector) +ifdef CONFIG_ARCH_IPQ807x +KBUILD_CFLAGS += $(call cc-option,-fstack-protector) +else +KBUILD_CFLAGS += $(call cc-option, -fno-stack-protector) +endif KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks) KBUILD_CFLAGS += -g