summaryrefslogtreecommitdiff
path: root/devel/llvm80/files/clang/patch-freebsd-r349351.diff
blob: 477559910304c130f016922562a606e38c0f8eaf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- tools/clang/lib/Driver/ToolChains/Arch/PPC.cpp.orig
+++ tools/clang/lib/Driver/ToolChains/Arch/PPC.cpp
@@ -116,7 +116,8 @@
                                               const ArgList &Args) {
   if (Args.getLastArg(options::OPT_msecure_plt))
     return ppc::ReadGOTPtrMode::SecurePlt;
-  if (Triple.isOSNetBSD() || Triple.isOSOpenBSD())
+  if ((Triple.isOSFreeBSD() && Triple.getOSMajorVersion() >= 13) ||
+      Triple.isOSNetBSD() || Triple.isOSOpenBSD())
     return ppc::ReadGOTPtrMode::SecurePlt;
   else
     return ppc::ReadGOTPtrMode::Bss;