[PATCH] Add the -fstack-protector option to the CFLAGS
authorArjan van de Ven <arjan@linux.intel.com>
Tue, 26 Sep 2006 08:52:39 +0000 (10:52 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Tue, 26 Sep 2006 08:52:39 +0000 (10:52 +0200)
commit4f7fd4d7a79193ceda4ce77f75e22917d33fa154
tree433b106db54d73d4da6d3ad48cd55863ec812176
parent3162f751d04086a9d006342de63ac8f44fe0f72a
[PATCH] Add the -fstack-protector option to the CFLAGS

Add a feature check that checks that the gcc compiler has stack-protector
support and has the bugfix for PR28281 to make this work in kernel mode.
The easiest solution I could find was to have a shell script in scripts/
to do the detection; if needed we can make this fancier in the future
without making the makefile too complex.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Andi Kleen <ak@suse.de>
CC: Andi Kleen <ak@suse.de>
CC: Sam Ravnborg <sam@ravnborg.org>
arch/x86_64/Makefile
scripts/gcc-x86_64-has-stack-protector.sh [new file with mode: 0644]