diff options
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 | |||
3 | 3 | ||
4 | See http://gcc.gnu.org/PR16350 | 4 | See http://gcc.gnu.org/PR16350 |
5 | 5 | ||
6 | --- gcc-4.2.0/gcc/config/arm/linux-elf.h | 6 | Index: gcc-4.3.2/gcc/config/arm/linux-elf.h |
7 | +++ gcc-4.2.0/gcc/config/arm/linux-elf.h | 7 | =================================================================== |
8 | @@ -28,19 +28,33 @@ | 8 | --- gcc-4.3.2.orig/gcc/config/arm/linux-elf.h 2007-11-08 05:44:09.000000000 -0800 |
9 | #undef TARGET_VERSION | 9 | +++ gcc-4.3.2/gcc/config/arm/linux-elf.h 2008-08-28 21:08:30.000000000 -0700 |
10 | #define TARGET_VERSION fputs (" (ARM GNU/Linux with ELF)", stderr); | 10 | @@ -51,7 +51,7 @@ |
11 | |||
12 | +/* | ||
13 | + * 'config.gcc' defines TARGET_BIG_ENDIAN_DEFAULT as 1 for arm*b-* | ||
14 | + * (big endian) configurations. | ||
15 | + */ | ||
16 | +#if TARGET_BIG_ENDIAN_DEFAULT | ||
17 | +#define TARGET_ENDIAN_DEFAULT MASK_BIG_END | ||
18 | +#define TARGET_ENDIAN_OPTION "mbig-endian" | ||
19 | +#define TARGET_LINKER_EMULATION "armelfb_linux" | ||
20 | +#else | ||
21 | +#define TARGET_ENDIAN_DEFAULT 0 | ||
22 | +#define TARGET_ENDIAN_OPTION "mlittle-endian" | ||
23 | +#define TARGET_LINKER_EMULATION "armelf_linux" | ||
24 | +#endif | ||
25 | + | ||
26 | #undef TARGET_DEFAULT_FLOAT_ABI | ||
27 | #define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_HARD | ||
28 | |||
29 | #undef TARGET_DEFAULT | ||
30 | -#define TARGET_DEFAULT (0) | ||
31 | +#define TARGET_DEFAULT (TARGET_ENDIAN_DEFAULT) | ||
32 | |||
33 | #define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6 | ||
34 | |||
35 | -#define SUBTARGET_EXTRA_LINK_SPEC " -m armelf_linux -p" | ||
36 | +#define SUBTARGET_EXTRA_LINK_SPEC " -m " TARGET_LINKER_EMULATION " -p" | ||
37 | 11 | ||
38 | #undef MULTILIB_DEFAULTS | 12 | #undef MULTILIB_DEFAULTS |
39 | #define MULTILIB_DEFAULTS \ | 13 | #define MULTILIB_DEFAULTS \ |
@@ -42,19 +16,12 @@ See http://gcc.gnu.org/PR16350 | |||
42 | 16 | ||
43 | /* Now we define the strings used to build the spec file. */ | 17 | /* Now we define the strings used to build the spec file. */ |
44 | #undef LIB_SPEC | 18 | #undef LIB_SPEC |
45 | @@ -61,7 +75,7 @@ | 19 | Index: gcc-4.3.2/gcc/config.gcc |
46 | %{rdynamic:-export-dynamic} \ | 20 | =================================================================== |
47 | %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "} \ | 21 | --- gcc-4.3.2.orig/gcc/config.gcc 2008-08-28 20:57:39.000000000 -0700 |
48 | -X \ | 22 | +++ gcc-4.3.2/gcc/config.gcc 2008-08-28 21:00:11.000000000 -0700 |
49 | - %{mbig-endian:-EB}" \ | 23 | @@ -742,6 +742,11 @@ |
50 | + %{mbig-endian:-EB} %{mlittle-endian:-EL}" \ | 24 | esac |
51 | SUBTARGET_EXTRA_LINK_SPEC | ||
52 | |||
53 | #undef LINK_SPEC | ||
54 | --- gcc-4.2.0/gcc/config.gcc.orig 2006-09-22 14:53:41.000000000 +0200 | ||
55 | +++ gcc-4.2.0/gcc/config.gcc 2006-09-25 10:45:21.000000000 +0200 | ||
56 | @@ -696,6 +696,11 @@ | ||
57 | tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h" | ||
58 | tmake_file="${tmake_file} t-linux arm/t-arm" | 25 | tmake_file="${tmake_file} t-linux arm/t-arm" |
59 | case ${target} in | 26 | case ${target} in |
60 | + arm*b-*) | 27 | + arm*b-*) |