summaryrefslogtreecommitdiff
path: root/system/llvm4/musl-ppc64-elfv2.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-02 21:12:24 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-02 21:56:14 -0500
commit726d34dd37e808e2b56f3424e1cb5771e05fb03f (patch)
treec149754e9d641ca55c1bd5167c3df517750774ba /system/llvm4/musl-ppc64-elfv2.patch
parent039f9ac6903cc7d370268f0580e65ded1e5083b5 (diff)
downloadpackages-726d34dd37e808e2b56f3424e1cb5771e05fb03f.tar.gz
packages-726d34dd37e808e2b56f3424e1cb5771e05fb03f.tar.bz2
packages-726d34dd37e808e2b56f3424e1cb5771e05fb03f.tar.xz
packages-726d34dd37e808e2b56f3424e1cb5771e05fb03f.zip
system/llvm4: Support PPC64 properly
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.
+ ;