summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2012-03-06 00:00:12 +0100
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-03-26 23:09:25 +0200
commit696df71b5f564916db6762b8f21605676abc6baf (patch)
treedee6ee4a166143821a75a3d3e6cc3fc858d9c7ec /arch
parente0e7f3b210ce553c6caab05b71891a1279eb551e (diff)
downloadu-boot-imx-696df71b5f564916db6762b8f21605676abc6baf.zip
u-boot-imx-696df71b5f564916db6762b8f21605676abc6baf.tar.gz
u-boot-imx-696df71b5f564916db6762b8f21605676abc6baf.tar.bz2
IXP: Make IXP buildable with arm-linux- toolchains
Add -EB flag to LD to switch endianness of the linker. This should make armeb targets buildable again. Also, make use of U-Boot's internal libgcc instead of toolchain's one, this works around the use of libraries from GCC, which might be little endian. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Bryan Hundven <bryanhundven@gmail.com> Cc: Michael Schwingen <rincewind@discworld.dascon.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/ixp/config.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/cpu/ixp/config.mk b/arch/arm/cpu/ixp/config.mk
index 9149665..b02e8af 100644
--- a/arch/arm/cpu/ixp/config.mk
+++ b/arch/arm/cpu/ixp/config.mk
@@ -28,6 +28,9 @@ PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float -mbig-endian
PLATFORM_CPPFLAGS += -mbig-endian -march=armv5te -mtune=strongarm1100
+PLATFORM_LDFLAGS += -EB
+USE_PRIVATE_LIBGCC = yes
+
# -fdata-sections triggers "section .bss overlaps section .rel.dyn" linker error
PLATFORM_RELFLAGS += -ffunction-sections
LDFLAGS_u-boot += --gc-sections