diff options
author | Jez Ng <jezng@fb.com> | 2021-04-29 15:09:01 -0400 |
---|---|---|
committer | Jez Ng <jezng@fb.com> | 2021-04-29 15:11:23 -0400 |
commit | 7e115da5df47dbbbef141987845c1258f0c52874 (patch) | |
tree | 2f571699950061a930607fcbc9a5aa7a4a81e7d4 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | a6d92a971175d727873a9e7644913ee02d7232a8 (diff) | |
download | llvm-7e115da5df47dbbbef141987845c1258f0c52874.zip llvm-7e115da5df47dbbbef141987845c1258f0c52874.tar.gz llvm-7e115da5df47dbbbef141987845c1258f0c52874.tar.bz2 |
[lld-macho] Make everything PIE by default
Modern versions of macOS (>= 10.7) and in general all modern Mach-O
target archs want PIEs by default. ld64 defaults to PIE for iOS >= 4.3,
as well as for all versions of watchOS and simulators. Basically all the
platforms LLD is likely to target want PIE. So instead of cluttering LLD's
code with legacy version checks, I think it's simpler to just default to
PIE for everything.
Note that `-no_pie` still works, so users can still opt out of it.
Reviewed By: #lld-macho, thakis, MaskRay
Differential Revision: https://reviews.llvm.org/D101513
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions