summaryrefslogtreecommitdiff
path: root/toolchain/gcc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-11-23 01:05:51 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2016-11-23 01:05:58 +0100
commit3145c620aaad8fabf55d3fb6f40ae782e4ff7fa3 (patch)
treeaec3631a289008034faa6a9a2b3f918c3a82be68 /toolchain/gcc
parent1d1bbf63ba32d1199b4ecff9d2296fc79ea276ec (diff)
musl: add s390 support
Diffstat (limited to 'toolchain/gcc')
-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} \