]> git.karo-electronics.de Git - linux-beck.git/commit
sh: initial stack protector support.
authorFilippo Arcidiacono <filippo.arcidiacono@st.com>
Thu, 19 Apr 2012 06:45:57 +0000 (15:45 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 19 Apr 2012 06:45:57 +0000 (15:45 +0900)
commit5d920bb929a99446062a48cf90867bbca57b8e77
treefdadebe0b0fe8906ffd81ad9f726430d6428a8f5
parent932e9f352b5d685725076f21b237f7c7d804b29c
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>
arch/sh/Kconfig
arch/sh/Makefile
arch/sh/include/asm/stackprotector.h [new file with mode: 0644]
arch/sh/kernel/process.c
arch/sh/kernel/process_32.c