[PATCH] D67118: On PowerPC, Secure-PLT by default for FreeBSD 13 and higher
Dimitry Andric via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 3 11:15:18 PDT 2019
dim created this revision.
dim added reviewers: emaste, jhibbits, hfinkel.
Herald added subscribers: steven.zhang, shchenz, jsji, MaskRay, kbarton, krytarowski, nemanjai.
Herald added a project: LLVM.
In https://svnweb.freebsd.org/changeset/base/349351, FreeBSD 13 and
higher transitioned to Secure-PLT for PowerPC. This part contains the
changes in llvm's PPC subtarget.
Repository:
rL LLVM
https://reviews.llvm.org/D67118
Files:
lib/Target/PowerPC/PPCSubtarget.cpp
Index: lib/Target/PowerPC/PPCSubtarget.cpp
===================================================================
--- lib/Target/PowerPC/PPCSubtarget.cpp
+++ lib/Target/PowerPC/PPCSubtarget.cpp
@@ -145,7 +145,8 @@
if (isDarwin())
HasLazyResolverStubs = true;
- if (TargetTriple.isOSNetBSD() || TargetTriple.isOSOpenBSD() ||
+ if ((TargetTriple.isOSFreeBSD() && TargetTriple.getOSMajorVersion() >= 13) ||
+ TargetTriple.isOSNetBSD() || TargetTriple.isOSOpenBSD() ||
TargetTriple.isMusl())
SecurePlt = true;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67118.218499.patch
Type: text/x-patch
Size: 534 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190903/bc6f7d02/attachment.bin>
More information about the llvm-commits
mailing list