From 40651cbbd6b327763eaff44fb0442ffb2c69b81f Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Fri, 22 Nov 2013 18:49:13 +0800 Subject: [PATCH] rk: fix -fstack-protector support when build zImage --- arch/arm/boot/compressed/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile index 120b83bfde20..e6779a2e3884 100644 --- a/arch/arm/boot/compressed/Makefile +++ b/arch/arm/boot/compressed/Makefile @@ -124,6 +124,11 @@ ORIG_CFLAGS := $(KBUILD_CFLAGS) KBUILD_CFLAGS = $(subst -pg, , $(ORIG_CFLAGS)) endif +ifeq ($(CONFIG_CC_STACKPROTECTOR),y) +ORIG_CFLAGS := $(KBUILD_CFLAGS) +KBUILD_CFLAGS = $(subst -fstack-protector, , $(ORIG_CFLAGS)) +endif + ccflags-y := -fpic -mno-single-pic-base -fno-builtin -I$(obj) asflags-y := -DZIMAGE -- 2.34.1