diff options
author | Tejun Heo <tj@kernel.org> | 2009-02-09 22:17:39 +0900 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-10 00:41:54 +0100 |
commit | 5d707e9c8ef2a3596ed5c975c6ff05cec890c2b4 (patch) | |
tree | d0088b317ee562f6655d58f5d561e2bb6aa5332c /Makefile | |
parent | 76397f72fb9f4c9a96dfe05462887811c81b0e17 (diff) | |
download | linux-stable-5d707e9c8ef2a3596ed5c975c6ff05cec890c2b4.tar.gz linux-stable-5d707e9c8ef2a3596ed5c975c6ff05cec890c2b4.tar.bz2 linux-stable-5d707e9c8ef2a3596ed5c975c6ff05cec890c2b4.zip |
stackprotector: update make rules
Impact: no default -fno-stack-protector if stackp is enabled, cleanup
Stackprotector make rules had the following problems.
* cc support test and warning are scattered across makefile and
kernel/panic.c.
* -fno-stack-protector was always added regardless of configuration.
Update such that cc support test and warning are contained in makefile
and -fno-stack-protector is added iff stackp is turned off. While at
it, prepare for 32bit support.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -532,8 +532,9 @@ KBUILD_CFLAGS += $(call cc-option,-Wframe-larger-than=${CONFIG_FRAME_WARN}) endif # Force gcc to behave correct even for buggy distributions -# Arch Makefiles may override this setting +ifndef CONFIG_CC_STACKPROTECTOR KBUILD_CFLAGS += $(call cc-option, -fno-stack-protector) +endif ifdef CONFIG_FRAME_POINTER KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls |