[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-23386d63bbb3199cf247313ec088878d72debcfd@git.kernel.org>
Date: Sun, 30 Aug 2009 18:43:07 GMT
From: tip-bot for Michal Schmidt <mschmidt@...hat.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
mschmidt@...hat.com, jeremy@...p.org, arjan@...radead.org,
tj@...nel.org, tglx@...utronix.de, mingo@...e.hu
Subject: [tip:x86/asm] x86: Detect stack protector for i386 builds on x86_64
Commit-ID: 23386d63bbb3199cf247313ec088878d72debcfd
Gitweb: http://git.kernel.org/tip/23386d63bbb3199cf247313ec088878d72debcfd
Author: Michal Schmidt <mschmidt@...hat.com>
AuthorDate: Sat, 29 Aug 2009 18:27:18 +0200
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Sun, 30 Aug 2009 20:39:48 +0200
x86: Detect stack protector for i386 builds on x86_64
Stack protector support was not detected when building with
ARCH=i386 on x86_64 systems:
arch/x86/Makefile:80: stack protector enabled but no compiler support
The "-m32" argument needs to be passed to the detection script.
Signed-off-by: Michal Schmidt <mschmidt@...hat.com>
Cc: Tejun Heo <tj@...nel.org>
Cc: Jeremy Fitzhardinge <jeremy@...p.org>
Cc: Arjan van de Ven <arjan@...radead.org>
LKML-Reference: <20090829182718.10f566b1@...la>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
--
---
arch/x86/Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/Makefile b/arch/x86/Makefile
index 1b68659..5e7db44 100644
--- a/arch/x86/Makefile
+++ b/arch/x86/Makefile
@@ -72,7 +72,7 @@ endif
ifdef CONFIG_CC_STACKPROTECTOR
cc_has_sp := $(srctree)/scripts/gcc-x86_$(BITS)-has-stack-protector.sh
- ifeq ($(shell $(CONFIG_SHELL) $(cc_has_sp) $(CC)),y)
+ ifeq ($(shell $(CONFIG_SHELL) $(cc_has_sp) $(CC) $(biarch)),y)
stackp-y := -fstack-protector
stackp-$(CONFIG_CC_STACKPROTECTOR_ALL) += -fstack-protector-all
KBUILD_CFLAGS += $(stackp-y)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists