aboutsummaryrefslogtreecommitdiffstats
path: root/main/gcc/gcc-4.8-musl-fix-arm-interp.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/gcc/gcc-4.8-musl-fix-arm-interp.patch')
-rw-r--r--main/gcc/gcc-4.8-musl-fix-arm-interp.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/main/gcc/gcc-4.8-musl-fix-arm-interp.patch b/main/gcc/gcc-4.8-musl-fix-arm-interp.patch
new file mode 100644
index 0000000000..6629d74318
--- /dev/null
+++ b/main/gcc/gcc-4.8-musl-fix-arm-interp.patch
@@ -0,0 +1,14 @@
+--- a/gcc/config/arm/linux-eabi.h
++++ b/gcc/config/arm/linux-eabi.h
+@@ -64,7 +64,10 @@
+
+ /* musl has no "classic" (i.e. broken) mode */
+ #undef MUSL_DYNAMIC_LINKER
+-#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-arm.so.1"
++#define MUSL_DYNAMIC_LINKER \
++ "%{mfloat-abi=hard:/lib/ld-musl-armhf.so.1}" \
++ "%{mfloat-abi=soft*:/lib/ld-musl-arm.so.1}" \
++ "%{!mfloat-abi=*:/lib/ld-musl-armhf.so.1}"
+
+ /* At this point, bpabi.h will have clobbered LINK_SPEC. We want to
+ use the GNU/Linux version, not the generic BPABI version. */