[U-Boot-Users] [PATCH] ColdFire: Add -got=single param for new linux v4e toolchains

Kurt Mahan kmahan at freescale.com
Tue Jun 24 19:20:10 CEST 2008


From: TsiChung Liew <Tsi-Chung.Liew at freescale.com>

Signed-off-by: Kurt Mahan <kmahan at freescale.com>
---
 cpu/mcf5445x/config.mk   |    6 ++++++
 cpu/mcf547x_8x/config.mk |    6 ++++++
 2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/cpu/mcf5445x/config.mk b/cpu/mcf5445x/config.mk
index 88433f2..67efa07 100644
--- a/cpu/mcf5445x/config.mk
+++ b/cpu/mcf5445x/config.mk
@@ -29,3 +29,9 @@ PLATFORM_CPPFLAGS += -mcpu=54455 -fPIC
 else
 PLATFORM_CPPFLAGS += -m5407 -fPIC
 endif
+
+ifneq (,$(findstring -linux-,$(shell $(CC) --version)))
+ifneq (,$(findstring GOT,$(shell $(LD) --help)))
+PLATFORM_LDFLAGS += --got=single
+endif
+endif
diff --git a/cpu/mcf547x_8x/config.mk b/cpu/mcf547x_8x/config.mk
index e5f4385..567b281 100644
--- a/cpu/mcf547x_8x/config.mk
+++ b/cpu/mcf547x_8x/config.mk
@@ -29,3 +29,9 @@ PLATFORM_CPPFLAGS += -mcpu=5485 -fPIC
 else
 PLATFORM_CPPFLAGS += -m5407 -fPIC
 endif
+
+ifneq (,$(findstring -linux-,$(shell $(CC) --version)))
+ifneq (,$(findstring GOT,$(shell $(LD) --help)))
+PLATFORM_LDFLAGS += --got=single
+endif
+endif
-- 
1.5.4.1





More information about the U-Boot mailing list