This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Extend PIE option handling
ClosedPublic

Authored by int3 on Nov 30 2020, 9:12 PM.

Details

Reviewers
thakis
Group Reviewers
Restricted Project
Commits
rG6b3eecd22ab2: [lld-macho] Extend PIE option handling
Summary
  • Enable PIE by default if targeting 10.6 or above on x86-64. (The manpage says 10.7, but that actually applies only to i386, and in general varies based on the target platform. I didn't update the manpage because listing all the different behaviors would make for a pretty long description.)
  • Add support for -no_pie
  • Remove HelpHidden from -pie

Diff Detail

Event Timeline

int3 created this revision.Nov 30 2020, 9:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 30 2020, 9:12 PM
int3 requested review of this revision.Nov 30 2020, 9:12 PM
thakis accepted this revision.Dec 1 2020, 5:51 AM

Thanks!

This revision is now accepted and ready to land.Dec 1 2020, 5:51 AM
This revision was automatically updated to reflect the committed changes.