From bdec9657ccc6a08f0660c131c8a79548d412a7b3 Mon Sep 17 00:00:00 2001 From: anusha Date: Wed, 13 Jan 2021 12:23:37 +0530 Subject: [PATCH] ipq9048: Enable stack protection Signed-off-by: anusha Change-Id: I2bb047b4425b4d04c6d38ec982a117f6f5deac37 --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 61340e5dec..4137725b8b 100644 --- a/Makefile +++ b/Makefile @@ -581,10 +581,14 @@ else ifdef CONFIG_ARCH_IPQ6018 KBUILD_CFLAGS += $(call cc-option,-fstack-protector) else +ifdef CONFIG_ARCH_IPQ9048 +KBUILD_CFLAGS += $(call cc-option,-fstack-protector) +else KBUILD_CFLAGS += $(call cc-option, -fno-stack-protector) endif endif endif +endif KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks) KBUILD_CFLAGS += -g