[PATCH] D95913: [lld-macho] Implement -bundle_loader
Vy Nguyen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 3 18:02:02 PST 2021
oontvoo marked an inline comment as done.
oontvoo added inline comments.
================
Comment at: lld/MachO/Driver.cpp:801
+ error("-bundle_loader can only be used with MachO bundle output");
+ if (fs::exists(arg->getValue()))
+ addFile(arg->getValue(), false, true);
----------------
jyknight wrote:
> Why is this check before opening needed?
to fail early... should it not check that?
================
Comment at: lld/MachO/InputFiles.cpp:626
+ } else if (!isBundleLoader) {
+ // macho_executable and macho_bundle don't have LC_ID_DYLIB
error("dylib " + toString(this) + " missing LC_ID_DYLIB load command");
----------------
jyknight wrote:
> As discussed via chat, you'll need to make sure that the proper "EXECUTABLE_ORDINAL" ordinal gets used, rather than emitting a LOAD_DYLIB with an empty dylib name.
Resolved. Sorry, I'd forgot to add the `SyntheticSections.cpp` to the commit.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95913/new/
https://reviews.llvm.org/D95913
More information about the llvm-commits
mailing list