[PATCH] D87856: [lld-macho] Support -bundle

Jez Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 17 13:39:47 PDT 2020


int3 created this revision.
int3 added a reviewer: lld-macho.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
int3 requested review of this revision.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87856

Files:
  lld/MachO/Driver.cpp
  lld/MachO/Writer.cpp
  lld/test/MachO/load-commands.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87856.292610.patch
Type: text/x-patch
Size: 4978 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200917/1550aecd/attachment.bin>


More information about the llvm-commits mailing list