13 lines
554 B
Diff
13 lines
554 B
Diff
--- 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;
|