summaryrefslogtreecommitdiff
path: root/system/llvm4/musl-ppc64-elfv2.patch
blob: 5e302191167762a41ce449e6a35e2a2cc9457db1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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.
       ;