summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2012-03-13 15:34:17 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-06-03 23:05:44 +0100
commitbcccc50ce8fcc833cfed4bb71ede211a6ef5b84a (patch)
tree7e51ec38ea79db3a5408dc3ec51fff11bdbedbeb
parentf8f5701bdaf9134b1f90e5044a82c66324d2073f (diff)
downloadlinux-3.10-bcccc50ce8fcc833cfed4bb71ede211a6ef5b84a.tar.gz
linux-3.10-bcccc50ce8fcc833cfed4bb71ede211a6ef5b84a.tar.bz2
linux-3.10-bcccc50ce8fcc833cfed4bb71ede211a6ef5b84a.zip
ARM: 7420/1: Improve build environment isolation
Increasingly distributions are setting default build environments to have LDFLAGS with hardening options. There seems to be an assumption with those options that LDFLAGS are passed to the compiler frontend rather than used directly with ld (which the kernel build process assumes) To prevent build failures in such environments this patch changes the ARM architecture Makefile to override the LDFLAGS from the environment similar to the behaviour on other common architectures e.g. x86 Signed-off-by: Vincent Sanders <vince@collabora.co.uk> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r--arch/arm/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 0298b00fe24..f8ebf1e9702 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -10,6 +10,9 @@
#
# Copyright (C) 1995-2001 by Russell King
+# Ensure linker flags are correct
+LDFLAGS :=
+
LDFLAGS_vmlinux :=-p --no-undefined -X
ifeq ($(CONFIG_CPU_ENDIAN_BE8),y)
LDFLAGS_vmlinux += --be8