From: Marek Vasut Date: Mon, 5 Mar 2012 23:00:12 +0000 (+0100) Subject: IXP: Make IXP buildable with arm-linux- toolchains X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=696df71b5f564916db6762b8f21605676abc6baf;p=project%2Fbcm63xx%2Fu-boot.git 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 Cc: Bryan Hundven Cc: Michael Schwingen --- diff --git a/arch/arm/cpu/ixp/config.mk b/arch/arm/cpu/ixp/config.mk index 9149665999..b02e8af6ec 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