summaryrefslogblamecommitdiff
path: root/user/clang/ppc64-elfv2.patch
blob: 7c5ef421ccf446b71c03985cf14c0dcbb0197776 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                                                                   
                   

                     
                                          



                                                                                 
                                                                           
--- cfe-8.0.0.src/lib/Basic/Targets/PPC.h.old	2019-02-12 11:19:21.000000000 +0000
+++ cfe-8.0.0.src/lib/Basic/Targets/PPC.h	2019-06-01 23:18:07.613180102 +0000
@@ -427,7 +427,7 @@
       ABI = "elfv2";
     } else {
       DataLayout = "E-m:e-i64:64-n32:64";
-      ABI = "elfv1";
+      ABI = (Triple.getEnvironment() == llvm::Triple::Musl) ? "elfv2" : "elfv1";
     }
 
     if (Triple.isOSFreeBSD() || Triple.isOSOpenBSD() || Triple.isMusl()) {