aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/Makefile')
-rw-r--r--arch/arm/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 05a91d8b89f3..0436002d5091 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -303,6 +303,18 @@ else
303KBUILD_IMAGE := $(boot)/zImage 303KBUILD_IMAGE := $(boot)/zImage
304endif 304endif
305 305
306ifeq ($(CONFIG_STACKPROTECTOR_PER_TASK),y)
307prepare: stack_protector_prepare
308stack_protector_prepare: prepare0
309 $(eval KBUILD_CFLAGS += \
310 -fplugin-arg-arm_ssp_per_task_plugin-tso=$(shell \
311 awk '{if ($$2 == "THREAD_SZ_ORDER") print $$3;}'\
312 include/generated/asm-offsets.h) \
313 -fplugin-arg-arm_ssp_per_task_plugin-offset=$(shell \
314 awk '{if ($$2 == "TI_STACK_CANARY") print $$3;}'\
315 include/generated/asm-offsets.h))
316endif
317
306all: $(notdir $(KBUILD_IMAGE)) 318all: $(notdir $(KBUILD_IMAGE))
307 319
308 320