This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Simulator & DriverKit executables should always be PIE
ClosedPublic

Authored by int3 on Dec 22 2020, 8:02 PM.

Details

Summary

We didn't have support for parsing DriverKit in our -platform
flag, so add that too. Also remove a bunch of unnecessary namespace
prefixes.

Diff Detail

Event Timeline

int3 requested review of this revision.Dec 22 2020, 8:02 PM
int3 created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 22 2020, 8:02 PM
int3 updated this revision to Diff 313478.Dec 22 2020, 8:56 PM
int3 retitled this revision from [lld-macho] Simulator executables should always be PIE to [lld-macho] Simulator & DriverKit executables should always be PIE.
int3 edited the summary of this revision. (Show Details)
int3 added a reviewer: compnerd.

update

int3 updated this revision to Diff 313479.Dec 22 2020, 9:38 PM

fix test

thakis accepted this revision.Dec 23 2020, 3:37 AM
This revision is now accepted and ready to land.Dec 23 2020, 3:37 AM

(nit: Consider checking in obviously-behavior-preserving changes like stripping namespace prefixes without pre-commit review, and only send out the behavior-changing bits.)

int3 added a comment.Dec 23 2020, 8:24 AM

Thanks! Will do that in the future.