[PATCH] D59185: [PowerPC] Set the default PLT mode on musl to Secure PLT
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 29 19:14:24 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL362051: [PowerPC] Set the default PLT mode on musl to Secure PLT (authored by MaskRay, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D59185?vs=190003&id=202100#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59185/new/
https://reviews.llvm.org/D59185
Files:
cfe/trunk/lib/Driver/ToolChains/Arch/PPC.cpp
Index: cfe/trunk/lib/Driver/ToolChains/Arch/PPC.cpp
===================================================================
--- cfe/trunk/lib/Driver/ToolChains/Arch/PPC.cpp
+++ cfe/trunk/lib/Driver/ToolChains/Arch/PPC.cpp
@@ -115,7 +115,7 @@
const ArgList &Args) {
if (Args.getLastArg(options::OPT_msecure_plt))
return ppc::ReadGOTPtrMode::SecurePlt;
- if (Triple.isOSNetBSD() || Triple.isOSOpenBSD())
+ if (Triple.isOSNetBSD() || Triple.isOSOpenBSD() || Triple.isMusl())
return ppc::ReadGOTPtrMode::SecurePlt;
else
return ppc::ReadGOTPtrMode::Bss;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59185.202100.patch
Type: text/x-patch
Size: 615 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190530/16ad476a/attachment.bin>
More information about the llvm-commits
mailing list