summaryrefslogtreecommitdiff
path: root/toolchain/gcc/patches
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain/gcc/patches')
-rw-r--r--toolchain/gcc/patches/6.2.0/s390-musl.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/6.2.0/s390-musl.patch b/toolchain/gcc/patches/6.2.0/s390-musl.patch
new file mode 100644
index 000000000..f2789e804
--- /dev/null
+++ b/toolchain/gcc/patches/6.2.0/s390-musl.patch
@@ -0,0 +1,15 @@
+diff -Nur gcc-6.2.0.orig/gcc/config/s390/linux.h gcc-6.2.0/gcc/config/s390/linux.h
+--- gcc-6.2.0.orig/gcc/config/s390/linux.h 2016-01-04 15:30:50.000000000 +0100
++++ gcc-6.2.0/gcc/config/s390/linux.h 2016-11-23 00:05:47.186562086 +0100
+@@ -63,6 +63,11 @@
+ #define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
+ #define GLIBC_DYNAMIC_LINKER64 "/lib/ld64.so.1"
+
++#undef MUSL_DYNAMIC_LINKER32
++#define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-s390.so.1"
++#undef MUSL_DYNAMIC_LINKER64
++#define MUSL_DYNAMIC_LINKER64 "/lib/ld-musl-s390x.so.1"
++
+ #undef LINK_SPEC
+ #define LINK_SPEC \
+ "%{m31:-m elf_s390}%{m64:-m elf64_s390} \