diff options
author | Nicolas Pitre <nico@fluxnic.net> | 2010-05-24 23:55:42 -0400 |
---|---|---|
committer | Nicolas Pitre <nico@fluxnic.net> | 2010-06-14 21:31:00 -0400 |
commit | c743f38013aeff58ef6252601e397b5ba281c633 (patch) | |
tree | b364e1690aff8a0dd97a83d4cb17bcadcdb5bd19 /arch/arm/Makefile | |
parent | cc92c28b2db5b406657ecc05235d4ca4e222ae34 (diff) | |
download | linux-3.10-c743f38013aeff58ef6252601e397b5ba281c633.tar.gz linux-3.10-c743f38013aeff58ef6252601e397b5ba281c633.tar.bz2 linux-3.10-c743f38013aeff58ef6252601e397b5ba281c633.zip |
ARM: initial stack protector (-fstack-protector) support
This is the very basic stuff without the changing canary upon
task switch yet. Just the Kconfig option and a constant canary
value initialized at boot time.
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Diffstat (limited to 'arch/arm/Makefile')
-rw-r--r-- | arch/arm/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 64ba313724d..ddf6da158ad 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -34,6 +34,10 @@ ifeq ($(CONFIG_FRAME_POINTER),y) KBUILD_CFLAGS +=-fno-omit-frame-pointer -mapcs -mno-sched-prolog endif +ifeq ($(CONFIG_CC_STACKPROTECTOR),y) +KBUILD_CFLAGS +=-fstack-protector +endif + ifeq ($(CONFIG_CPU_BIG_ENDIAN),y) KBUILD_CPPFLAGS += -mbig-endian AS += -EB |