stackprotector: update make rules
authorTejun Heo <tj@kernel.org>
Mon, 9 Feb 2009 13:17:39 +0000 (22:17 +0900)
committerIngo Molnar <mingo@elte.hu>
Mon, 9 Feb 2009 23:41:54 +0000 (00:41 +0100)
commit5d707e9c8ef2a3596ed5c975c6ff05cec890c2b4
treed0088b317ee562f6655d58f5d561e2bb6aa5332c
parent76397f72fb9f4c9a96dfe05462887811c81b0e17
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>
Makefile
arch/x86/Makefile
kernel/panic.c
scripts/gcc-x86_64-has-stack-protector.sh