]> git.baikalelectronics.ru Git - kernel.git/commit
x86, build: Disable -fPIE when compiling with CONFIG_CC_STACKPROTECTOR=y
authorbasile@opensource.dyc.edu <basile@opensource.dyc.edu>
Mon, 13 Sep 2010 10:13:19 +0000 (06:13 -0400)
committerH. Peter Anvin <hpa@linux.intel.com>
Mon, 13 Sep 2010 22:53:16 +0000 (15:53 -0700)
commit36fb78811c5f0d98420a3e3ff7b09bb25dc2b2a6
treefcbd20a7dfc1b75c270fcc5ce815babd78a9c8bb
parent5ce7673eec81490ef53df0a67ad39d1ea9852b8a
x86, build: Disable -fPIE when compiling with CONFIG_CC_STACKPROTECTOR=y

The arch/x86/Makefile uses scripts/gcc-x86_$(BITS)-has-stack-protector.sh
to check if cc1 supports -fstack-protector.  When -fPIE is passed to cc1,
these scripts fail causing stack protection to be disabled even when it
is available.

This fix is similar to commit 0a49bcb3fdabf7874000400ca85a7ba9c7243de1

Reported-by: Kai Dietrich <mail@cleeus.de>
Signed-off-by: Magnus Granberg <zorry@gentoo.org>
LKML-Reference: <20100913101319.748A1148E216@opensource.dyc.edu>
Signed-off-by: Anthony G. Basile <basile@opensource.dyc.edu>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/Makefile