diff options
author | Filippo Arcidiacono <filippo.arcidiacono@st.com> | 2012-04-19 02:45:57 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-04-19 02:45:57 -0400 |
commit | 5d920bb929a99446062a48cf90867bbca57b8e77 (patch) | |
tree | fdadebe0b0fe8906ffd81ad9f726430d6428a8f5 /arch/sh/Makefile | |
parent | 932e9f352b5d685725076f21b237f7c7d804b29c (diff) |
sh: initial stack protector support.
This implements basic -fstack-protector support, based on the early ARM
version in c743f38013aeff58ef6252601e397b5ba281c633. The SMP case is
limited to the initial canary value, while the UP case handles per-task
granularity (limited to 32-bit sh until a new enough sh64 compiler
manifests itself).
Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
Reviewed-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Signed-off-by: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/Makefile')
-rw-r--r-- | arch/sh/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sh/Makefile b/arch/sh/Makefile index 3fc0f413777c..24875c8c1514 100644 --- a/arch/sh/Makefile +++ b/arch/sh/Makefile | |||
@@ -199,6 +199,10 @@ ifeq ($(CONFIG_DWARF_UNWINDER),y) | |||
199 | KBUILD_CFLAGS += -fasynchronous-unwind-tables | 199 | KBUILD_CFLAGS += -fasynchronous-unwind-tables |
200 | endif | 200 | endif |
201 | 201 | ||
202 | ifeq ($(CONFIG_CC_STACKPROTECTOR),y) | ||
203 | KBUILD_CFLAGS += -fstack-protector | ||
204 | endif | ||
205 | |||
202 | libs-$(CONFIG_SUPERH32) := arch/sh/lib/ $(libs-y) | 206 | libs-$(CONFIG_SUPERH32) := arch/sh/lib/ $(libs-y) |
203 | libs-$(CONFIG_SUPERH64) := arch/sh/lib64/ $(libs-y) | 207 | libs-$(CONFIG_SUPERH64) := arch/sh/lib64/ $(libs-y) |
204 | 208 | ||