diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-09-14 20:22:34 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-09-14 20:22:34 +0100 |
commit | 2e7e072f58f4dd47edc4e54d96b79bd9ff92ee7e (patch) | |
tree | 63225a230143108a02d1b972931e20c9d92d9886 /meta/packages/gcc/gcc-4.3.3/800-arm-bigendian.patch | |
parent | 8f96edfb16e593264a49b04eade98d4e2094d1b1 (diff) | |
download | openembedded-core-2e7e072f58f4dd47edc4e54d96b79bd9ff92ee7e.tar.gz openembedded-core-2e7e072f58f4dd47edc4e54d96b79bd9ff92ee7e.tar.bz2 openembedded-core-2e7e072f58f4dd47edc4e54d96b79bd9ff92ee7e.zip |
gcc-4.3.3: Sync patchset with OE.dev
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages/gcc/gcc-4.3.3/800-arm-bigendian.patch')
-rw-r--r-- | meta/packages/gcc/gcc-4.3.3/800-arm-bigendian.patch | 55 |
1 files changed, 11 insertions, 44 deletions
diff --git a/meta/packages/gcc/gcc-4.3.3/800-arm-bigendian.patch b/meta/packages/gcc/gcc-4.3.3/800-arm-bigendian.patch index 07c6093379..f433942783 100644 --- a/meta/packages/gcc/gcc-4.3.3/800-arm-bigendian.patch +++ b/meta/packages/gcc/gcc-4.3.3/800-arm-bigendian.patch @@ -3,37 +3,11 @@ Adds support for arm*b-linux* big-endian ARM targets See http://gcc.gnu.org/PR16350 ---- gcc-4.2.0/gcc/config/arm/linux-elf.h -+++ gcc-4.2.0/gcc/config/arm/linux-elf.h -@@ -28,19 +28,33 @@ - #undef TARGET_VERSION - #define TARGET_VERSION fputs (" (ARM GNU/Linux with ELF)", stderr); - -+/* -+ * 'config.gcc' defines TARGET_BIG_ENDIAN_DEFAULT as 1 for arm*b-* -+ * (big endian) configurations. -+ */ -+#if TARGET_BIG_ENDIAN_DEFAULT -+#define TARGET_ENDIAN_DEFAULT MASK_BIG_END -+#define TARGET_ENDIAN_OPTION "mbig-endian" -+#define TARGET_LINKER_EMULATION "armelfb_linux" -+#else -+#define TARGET_ENDIAN_DEFAULT 0 -+#define TARGET_ENDIAN_OPTION "mlittle-endian" -+#define TARGET_LINKER_EMULATION "armelf_linux" -+#endif -+ - #undef TARGET_DEFAULT_FLOAT_ABI - #define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_HARD - - #undef TARGET_DEFAULT --#define TARGET_DEFAULT (0) -+#define TARGET_DEFAULT (TARGET_ENDIAN_DEFAULT) - - #define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6 - --#define SUBTARGET_EXTRA_LINK_SPEC " -m armelf_linux -p" -+#define SUBTARGET_EXTRA_LINK_SPEC " -m " TARGET_LINKER_EMULATION " -p" +Index: gcc-4.3.2/gcc/config/arm/linux-elf.h +=================================================================== +--- gcc-4.3.2.orig/gcc/config/arm/linux-elf.h 2007-11-08 05:44:09.000000000 -0800 ++++ gcc-4.3.2/gcc/config/arm/linux-elf.h 2008-08-28 21:08:30.000000000 -0700 +@@ -51,7 +51,7 @@ #undef MULTILIB_DEFAULTS #define MULTILIB_DEFAULTS \ @@ -42,19 +16,12 @@ See http://gcc.gnu.org/PR16350 /* Now we define the strings used to build the spec file. */ #undef LIB_SPEC -@@ -61,7 +75,7 @@ - %{rdynamic:-export-dynamic} \ - %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "} \ - -X \ -- %{mbig-endian:-EB}" \ -+ %{mbig-endian:-EB} %{mlittle-endian:-EL}" \ - SUBTARGET_EXTRA_LINK_SPEC - - #undef LINK_SPEC ---- gcc-4.2.0/gcc/config.gcc.orig 2006-09-22 14:53:41.000000000 +0200 -+++ gcc-4.2.0/gcc/config.gcc 2006-09-25 10:45:21.000000000 +0200 -@@ -696,6 +696,11 @@ - tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h" +Index: gcc-4.3.2/gcc/config.gcc +=================================================================== +--- gcc-4.3.2.orig/gcc/config.gcc 2008-08-28 20:57:39.000000000 -0700 ++++ gcc-4.3.2/gcc/config.gcc 2008-08-28 21:00:11.000000000 -0700 +@@ -742,6 +742,11 @@ + esac tmake_file="${tmake_file} t-linux arm/t-arm" case ${target} in + arm*b-*) |