18aa021b9310034feb59f1e6524ae257cf95686a
[openwrt/openwrt.git] / toolchain / gcc / patches / 9.2.0 / 840-armv4_pass_fix-v4bx_to_ld.patch
1 commit 7edc8ca5456d9743dd0075eb3cc5b04f4f24c8cc
2 Author: Imre Kaloz <kaloz@openwrt.org>
3 Date: Wed Feb 2 19:34:36 2011 +0000
4
5 add armv4 fixup patches
6
7 SVN-Revision: 25322
8
9
10 --- a/gcc/config/arm/linux-eabi.h
11 +++ b/gcc/config/arm/linux-eabi.h
12 @@ -91,10 +91,15 @@
13 #define MUSL_DYNAMIC_LINKER \
14 "/lib/ld-musl-arm" MUSL_DYNAMIC_LINKER_E "%{mfloat-abi=hard:hf}.so.1"
15
16 +/* For armv4 we pass --fix-v4bx to linker to support EABI */
17 +#undef TARGET_FIX_V4BX_SPEC
18 +#define TARGET_FIX_V4BX_SPEC " %{mcpu=arm8|mcpu=arm810|mcpu=strongarm*"\
19 + "|march=armv4|mcpu=fa526|mcpu=fa626:--fix-v4bx}"
20 +
21 /* At this point, bpabi.h will have clobbered LINK_SPEC. We want to
22 use the GNU/Linux version, not the generic BPABI version. */
23 #undef LINK_SPEC
24 -#define LINK_SPEC EABI_LINK_SPEC \
25 +#define LINK_SPEC EABI_LINK_SPEC TARGET_FIX_V4BX_SPEC \
26 LINUX_OR_ANDROID_LD (LINUX_TARGET_LINK_SPEC, \
27 LINUX_TARGET_LINK_SPEC " " ANDROID_LINK_SPEC)
28