summaryrefslogtreecommitdiff
path: root/system/llvm4/musl-ppc64-elfv2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/llvm4/musl-ppc64-elfv2.patch')
-rw-r--r--system/llvm4/musl-ppc64-elfv2.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/system/llvm4/musl-ppc64-elfv2.patch b/system/llvm4/musl-ppc64-elfv2.patch
new file mode 100644
index 000000000..5e3021911
--- /dev/null
+++ b/system/llvm4/musl-ppc64-elfv2.patch
@@ -0,0 +1,14 @@
+--- llvm-4.0.0.src/lib/Target/PowerPC/PPCTargetMachine.cpp.old 2016-12-14 18:01:53.000000000 -0600
++++ llvm-4.0.0.src/lib/Target/PowerPC/PPCTargetMachine.cpp 2018-07-02 20:34:48.470000000 -0500
+@@ -169,7 +169,11 @@
+ case Triple::ppc64le:
+ return PPCTargetMachine::PPC_ABI_ELFv2;
+ case Triple::ppc64:
++#if defined(__linux__) && !defined(__GLIBC__)
++ return PPCTargetMachine::PPC_ABI_ELFv2;
++#else
+ return PPCTargetMachine::PPC_ABI_ELFv1;
++#endif
+ default:
+ // Fallthrough.
+ ;