Skip to content

Commit 5b40568

Browse files
committed
add gcc patches for powerpc-spe musl dynamic linker name
spe uses -sf abi
1 parent 7600764 commit 5b40568

File tree

4 files changed

+88
-0
lines changed

4 files changed

+88
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
--- gcc-8.5.0/gcc/config/rs6000/sysv4.h.orig 2021-07-05 12:56:18.398813835 -0400
2+
+++ gcc-8.5.0/gcc/config/rs6000/sysv4.h 2021-06-23 21:49:57.592408186 -0400
3+
@@ -793,7 +793,7 @@
4+
#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
5+
#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
6+
#define MUSL_DYNAMIC_LINKER \
7+
- "/lib/ld-musl-powerpc" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1"
8+
+ "/lib/ld-musl-powerpc" MUSL_DYNAMIC_LINKER_E "%{msoft-float|mcpu=854*|mspe:-sf}.so.1"
9+
#if DEFAULT_LIBC == LIBC_UCLIBC
10+
#define CHOOSE_DYNAMIC_LINKER(G, U, M) \
11+
"%{mglibc:" G ";:%{mmusl:" M ";:" U "}}"
12+
--- gcc-8.5.0/gcc/config/rs6000/linux64.h.orig 2021-07-05 12:54:24.704854044 -0400
13+
+++ gcc-8.5.0/gcc/config/rs6000/linux64.h 2021-07-05 12:56:50.010806923 -0400
14+
@@ -426,7 +426,7 @@
15+
#endif
16+
17+
#define MUSL_DYNAMIC_LINKER32 \
18+
- "/lib/ld-musl-powerpc" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1"
19+
+ "/lib/ld-musl-powerpc" MUSL_DYNAMIC_LINKER_E "%{msoft-float|mcpu=854*|mspe:-sf}.so.1"
20+
#define MUSL_DYNAMIC_LINKER64 \
21+
"/lib/ld-musl-powerpc64" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1"
22+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
--- gcc-8.5.0/gcc/config/rs6000/sysv4.h.orig 2021-07-05 12:56:18.398813835 -0400
2+
+++ gcc-8.5.0/gcc/config/rs6000/sysv4.h 2021-06-23 21:49:57.592408186 -0400
3+
@@ -793,7 +793,7 @@
4+
#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
5+
#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
6+
#define MUSL_DYNAMIC_LINKER \
7+
- "/lib/ld-musl-powerpc" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1"
8+
+ "/lib/ld-musl-powerpc" MUSL_DYNAMIC_LINKER_E "%{msoft-float|mcpu=854*|mspe:-sf}.so.1"
9+
#if DEFAULT_LIBC == LIBC_UCLIBC
10+
#define CHOOSE_DYNAMIC_LINKER(G, U, M) \
11+
"%{mglibc:" G ";:%{mmusl:" M ";:" U "}}"
12+
--- gcc-8.5.0/gcc/config/rs6000/linux64.h.orig 2021-07-05 12:54:24.704854044 -0400
13+
+++ gcc-8.5.0/gcc/config/rs6000/linux64.h 2021-07-05 12:56:50.010806923 -0400
14+
@@ -426,7 +426,7 @@
15+
#endif
16+
17+
#define MUSL_DYNAMIC_LINKER32 \
18+
- "/lib/ld-musl-powerpc" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1"
19+
+ "/lib/ld-musl-powerpc" MUSL_DYNAMIC_LINKER_E "%{msoft-float|mcpu=854*|mspe:-sf}.so.1"
20+
#define MUSL_DYNAMIC_LINKER64 \
21+
"/lib/ld-musl-powerpc64" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1"
22+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
--- gcc-8.5.0/gcc/config/rs6000/sysv4.h.orig 2021-07-05 12:56:18.398813835 -0400
2+
+++ gcc-8.5.0/gcc/config/rs6000/sysv4.h 2021-06-23 21:49:57.592408186 -0400
3+
@@ -793,7 +793,7 @@
4+
#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
5+
#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
6+
#define MUSL_DYNAMIC_LINKER \
7+
- "/lib/ld-musl-powerpc" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1"
8+
+ "/lib/ld-musl-powerpc" MUSL_DYNAMIC_LINKER_E "%{msoft-float|mcpu=854*|mspe:-sf}.so.1"
9+
#if DEFAULT_LIBC == LIBC_UCLIBC
10+
#define CHOOSE_DYNAMIC_LINKER(G, U, M) \
11+
"%{mglibc:" G ";:%{mmusl:" M ";:" U "}}"
12+
--- gcc-8.5.0/gcc/config/rs6000/linux64.h.orig 2021-07-05 12:54:24.704854044 -0400
13+
+++ gcc-8.5.0/gcc/config/rs6000/linux64.h 2021-07-05 12:56:50.010806923 -0400
14+
@@ -426,7 +426,7 @@
15+
#endif
16+
17+
#define MUSL_DYNAMIC_LINKER32 \
18+
- "/lib/ld-musl-powerpc" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1"
19+
+ "/lib/ld-musl-powerpc" MUSL_DYNAMIC_LINKER_E "%{msoft-float|mcpu=854*|mspe:-sf}.so.1"
20+
#define MUSL_DYNAMIC_LINKER64 \
21+
"/lib/ld-musl-powerpc64" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1"
22+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
--- gcc-8.5.0/gcc/config/rs6000/sysv4.h.orig 2021-07-05 12:56:18.398813835 -0400
2+
+++ gcc-8.5.0/gcc/config/rs6000/sysv4.h 2021-06-23 21:49:57.592408186 -0400
3+
@@ -793,7 +793,7 @@
4+
#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
5+
#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
6+
#define MUSL_DYNAMIC_LINKER \
7+
- "/lib/ld-musl-powerpc" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1"
8+
+ "/lib/ld-musl-powerpc" MUSL_DYNAMIC_LINKER_E "%{msoft-float|mcpu=854*|mspe:-sf}.so.1"
9+
#if DEFAULT_LIBC == LIBC_UCLIBC
10+
#define CHOOSE_DYNAMIC_LINKER(G, U, M) \
11+
"%{mglibc:" G ";:%{mmusl:" M ";:" U "}}"
12+
--- gcc-8.5.0/gcc/config/rs6000/linux64.h.orig 2021-07-05 12:54:24.704854044 -0400
13+
+++ gcc-8.5.0/gcc/config/rs6000/linux64.h 2021-07-05 12:56:50.010806923 -0400
14+
@@ -426,7 +426,7 @@
15+
#endif
16+
17+
#define MUSL_DYNAMIC_LINKER32 \
18+
- "/lib/ld-musl-powerpc" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1"
19+
+ "/lib/ld-musl-powerpc" MUSL_DYNAMIC_LINKER_E "%{msoft-float|mcpu=854*|mspe:-sf}.so.1"
20+
#define MUSL_DYNAMIC_LINKER64 \
21+
"/lib/ld-musl-powerpc64" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1"
22+

0 commit comments

Comments
 (0)