1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/gcc/4.4.1/360-arm-bigendian.patch Sat Jul 16 01:01:30 2011 +0200
1.3 @@ -0,0 +1,32 @@
1.4 +By Lennert Buytenhek <buytenh@wantstofly.org>
1.5 +Adds support for arm*b-linux* big-endian ARM targets
1.6 +
1.7 +See http://gcc.gnu.org/PR16350
1.8 +
1.9 +--- gcc-4.4.2.orig/gcc/config/arm/linux-elf.h 2009-02-20 16:20:38.000000000 +0100
1.10 ++++ gcc-4.4.2/gcc/config/arm/linux-elf.h 2009-12-31 14:19:20.000000000 +0100
1.11 +@@ -51,7 +51,7 @@
1.12 +
1.13 + #undef MULTILIB_DEFAULTS
1.14 + #define MULTILIB_DEFAULTS \
1.15 +- { "marm", "mlittle-endian", "mhard-float", "mno-thumb-interwork" }
1.16 ++ { "marm", TARGET_ENDIAN_OPTION, "mhard-float", "mno-thumb-interwork" }
1.17 +
1.18 + /* Now we define the strings used to build the spec file. */
1.19 + #undef LIB_SPEC
1.20 +diff -ru gcc-4.4.2.orig/gcc/config.gcc gcc-4.4.2/gcc/config.gcc
1.21 +--- gcc-4.4.2.orig/gcc/config.gcc 2009-12-31 14:43:17.000000000 +0100
1.22 ++++ gcc-4.4.2/gcc/config.gcc 2010-01-05 09:27:42.000000000 +0100
1.23 +@@ -733,6 +733,11 @@
1.24 + tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/linux-gas.h arm/uclinux-elf.h"
1.25 + tmake_file="arm/t-arm arm/t-arm-elf"
1.26 + case ${target} in
1.27 ++ arm*b-*)
1.28 ++ tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
1.29 ++ ;;
1.30 ++ esac
1.31 ++ case ${target} in
1.32 + arm*-*-uclinux*eabi)
1.33 + tm_file="$tm_file arm/bpabi.h arm/uclinux-eabi.h"
1.34 + tmake_file="$tmake_file arm/t-bpabi"
1.35 +