From: basile@opensource.dyc.edu Date: Mon, 13 Sep 2010 10:13:19 +0000 (-0400) Subject: x86, build: Disable -fPIE when compiling with CONFIG_CC_STACKPROTECTOR=y X-Git-Tag: v2.6.36-rc5~21^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08c2b394b98786ebb067e2a54d08f1f6f0d247da;p=pandora-kernel.git 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 c47efe5548abbf53c2f66e06dcb46183b11d6b22 Reported-by: Kai Dietrich Signed-off-by: Magnus Granberg LKML-Reference: <20100913101319.748A1148E216@opensource.dyc.edu> Signed-off-by: Anthony G. Basile Cc: Andrew Morton Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed