This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Support -bundle
ClosedPublic

Authored by int3 on Sep 17 2020, 1:39 PM.

Details

Reviewers
smeenai
Group Reviewers
Restricted Project
Commits
rGf23f5126912b: [lld-macho] Support -bundle
Summary

Not 100% sure but it appears that bundles are almost identical to
dylibs, aside from the fact that they do not contain LC_ID_DYLIB. ld64's code
seems to treat bundles and dylibs identically in most places.

Supporting bundles allows us to run e.g. XCTests, as all test suites are
compiled into bundles which get dynamically loaded by the xctest test runner.

Diff Detail

Event Timeline

int3 created this revision.Sep 17 2020, 1:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 17 2020, 1:39 PM
int3 requested review of this revision.Sep 17 2020, 1:39 PM
int3 updated this revision to Diff 292671.Sep 17 2020, 5:16 PM

fix test

int3 updated this revision to Diff 292915.Sep 18 2020, 3:06 PM

extend test

int3 updated this revision to Diff 293540.Sep 22 2020, 11:47 AM

use getLastArg

smeenai accepted this revision.Sep 22 2020, 12:06 PM
smeenai added a subscriber: smeenai.

LGTM

This revision is now accepted and ready to land.Sep 22 2020, 12:06 PM
This revision was landed with ongoing or failed builds.Sep 25 2020, 11:28 AM
This revision was automatically updated to reflect the committed changes.