From: 黄涛 Date: Fri, 22 Nov 2013 10:49:13 +0000 (+0800) Subject: rk: fix -fstack-protector support when build zImage X-Git-Tag: firefly_0821_release~6483 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=40651cbbd6b327763eaff44fb0442ffb2c69b81f;p=firefly-linux-kernel-4.4.55.git rk: fix -fstack-protector support when build zImage --- 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