3d094751c8
(From OE-Core rev: f051216ea373f166016b15bbd2a2a6f136430372) (From OE-Core rev: d4573cb750bfde488682244d30266dfe675bac06) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
41 lines
1.6 KiB
Diff
41 lines
1.6 KiB
Diff
From 97e4591c20310425e7aca0e6712a8d9480e7744c Mon Sep 17 00:00:00 2001
|
|
From: Khem Raj <raj.khem@gmail.com>
|
|
Date: Fri, 29 Mar 2013 09:30:32 +0400
|
|
Subject: [PATCH 33/35] gcc: armv4: pass fix-v4bx to linker to support EABI.
|
|
|
|
The LINK_SPEC for linux gets overwritten by linux-eabi.h which
|
|
means the value of TARGET_FIX_V4BX_SPEC gets lost and as a result
|
|
the option is not passed to linker when chosing march=armv4
|
|
This patch redefines this in linux-eabi.h and reinserts it
|
|
for eabi defaulting toolchains.
|
|
|
|
We might want to send it upstream.
|
|
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
Upstream-Status: Pending
|
|
---
|
|
gcc/config/arm/linux-eabi.h | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
Index: gcc-4.9-20140316/gcc/config/arm/linux-eabi.h
|
|
===================================================================
|
|
--- gcc-4.9-20140316.orig/gcc/config/arm/linux-eabi.h
|
|
+++ gcc-4.9-20140316/gcc/config/arm/linux-eabi.h
|
|
@@ -77,10 +77,14 @@
|
|
%{mfloat-abi=soft*:" GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "} \
|
|
%{!mfloat-abi=*:" GLIBC_DYNAMIC_LINKER_DEFAULT "}"
|
|
|
|
+/* For armv4 we pass --fix-v4bx to linker to support EABI */
|
|
+#undef TARGET_FIX_V4BX_SPEC
|
|
+#define TARGET_FIX_V4BX_SPEC "%{mcpu=arm8|mcpu=arm810|mcpu=strongarm*|march=armv4: --fix-v4bx}"
|
|
+
|
|
/* At this point, bpabi.h will have clobbered LINK_SPEC. We want to
|
|
use the GNU/Linux version, not the generic BPABI version. */
|
|
#undef LINK_SPEC
|
|
-#define LINK_SPEC EABI_LINK_SPEC \
|
|
+#define LINK_SPEC TARGET_FIX_V4BX_SPEC EABI_LINK_SPEC \
|
|
LINUX_OR_ANDROID_LD (LINUX_TARGET_LINK_SPEC, \
|
|
LINUX_TARGET_LINK_SPEC " " ANDROID_LINK_SPEC)
|
|
|