summaryrefslogtreecommitdiff
path: root/user/clang/secure-plt.patch
blob: a92071e52a1ed79a3c9633d008a6630ca82c1e1c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- cfe-7.0.1.src/lib/Driver/ToolChains/Arch/PPC.cpp.old	2018-11-29 00:31:15.000000000 +0000
+++ cfe-7.0.1.src/lib/Driver/ToolChains/Arch/PPC.cpp	2019-03-10 04:37:49.350000000 +0000
@@ -116,7 +116,7 @@
                                               const ArgList &Args) {
   if (Args.getLastArg(options::OPT_msecure_plt))
     return ppc::ReadGOTPtrMode::SecurePlt;
-  if (Triple.isOSOpenBSD())
+  if (Triple.isOSOpenBSD() || Triple.isMusl())
     return ppc::ReadGOTPtrMode::SecurePlt;
   else
     return ppc::ReadGOTPtrMode::Bss;