blob: 82935f3d1d0bfa2784338f62da71711b675b8c0b [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001commit 7edc8ca5456d9743dd0075eb3cc5b04f4f24c8cc
2Author: Imre Kaloz <kaloz@openwrt.org>
3Date: 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@@ -88,10 +88,15 @@
13 #define MUSL_DYNAMIC_LINKER \
14 "/lib/ld-musl-arm" MUSL_DYNAMIC_LINKER_E "%{mfloat-abi=hard:hf}%{mfdpic:-fdpic}.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