replace gcc 4.5.2 support with 4.6.1
[openwrt/staging/chunkeey.git] / toolchain / gcc / patches / 4.6.1 / 840-armv4_pass_fix-v4bx_to_ld.patch
1 --- a/gcc/config/arm/linux-eabi.h
2 +++ b/gcc/config/arm/linux-eabi.h
3 @@ -64,12 +64,16 @@
4 #undef GLIBC_DYNAMIC_LINKER
5 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.3"
6
7 +/* For armv4 we pass --fix-v4bx to linker to support EABI */
8 +#undef TARGET_FIX_V4BX_SPEC
9 +#define TARGET_FIX_V4BX_SPEC " %{mcpu=arm8|mcpu=arm810|mcpu=strongarm*|march=armv4:--fix-v4bx}"
10 +
11 /* At this point, bpabi.h will have clobbered LINK_SPEC. We want to
12 use the GNU/Linux version, not the generic BPABI version. */
13 #undef LINK_SPEC
14 #define LINK_SPEC BE8_LINK_SPEC \
15 LINUX_OR_ANDROID_LD (LINUX_TARGET_LINK_SPEC, \
16 - LINUX_TARGET_LINK_SPEC " " ANDROID_LINK_SPEC)
17 + LINUX_TARGET_LINK_SPEC " " ANDROID_LINK_SPEC) \
18
19 #undef CC1_SPEC
20 #define CC1_SPEC \