summaryrefslogtreecommitdiff
path: root/system/binutils/ppc32-pic-required.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/binutils/ppc32-pic-required.patch')
-rw-r--r--system/binutils/ppc32-pic-required.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/system/binutils/ppc32-pic-required.patch b/system/binutils/ppc32-pic-required.patch
new file mode 100644
index 000000000..c9395d945
--- /dev/null
+++ b/system/binutils/ppc32-pic-required.patch
@@ -0,0 +1,23 @@
+On the 32-bit PowerPC target, musl does not support shared libraries without
+PIC, because secure-PLT is required.
+
+Upstream-URL: https://sourceware.org/bugzilla/show_bug.cgi?id=30918
+
+--- binutils-2.41/ld/testsuite/ld-shared/shared.exp.old 2023-07-02 23:00:00.000000000 +0000
++++ binutils-2.41/ld/testsuite/ld-shared/shared.exp 2023-09-24 08:44:39.404937347 +0000
+@@ -226,6 +226,7 @@
+ setup_xfail "*-*-solaris2*"
+ setup_xfail "ia64-*-linux*"
+ setup_xfail "alpha*-*-linux*"
++ setup_xfail "powerpc-*-linux-musl"
+ setup_xfail "powerpc64*-*-*"
+ if { ![istarget hppa*64*-*-linux*] } {
+ setup_xfail "hppa*-*-linux*"
+@@ -307,6 +308,7 @@
+ setup_xfail "*-*-solaris2*"
+ setup_xfail "ia64-*-linux*"
+ setup_xfail "alpha*-*-linux*"
++ setup_xfail "powerpc-*-linux-musl"
+ setup_xfail "powerpc64*-*-*"
+ if { ![istarget hppa*64*-*-linux*] } {
+ setup_xfail "hppa*-*-linux*"