[PATCH] D76252: [lld-macho] Add basic support for linking against dylibs
Jez Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 9 21:13:12 PDT 2020
int3 added inline comments.
================
Comment at: lld/MachO/InputFiles.cpp:225
+ // Initialize symbols.
+ if (const load_command *cmd = findCommand(hdr, LC_SYMTAB)) {
+ auto *c = (const symtab_command *)cmd;
----------------
int3 wrote:
> smeenai wrote:
> > Is it correct to just consider LC_SYMTAB for this, or should we also be consulting LC_DYSYMTAB and/or the export trie? If so, we don't have to address that in this diff, but we should add a TODO.
> >
> > We should also add a TODO about handling a missing LC_SYMTAB.
> I *think* the export trie is only consumed by dyld. Let me see what the deal is with LC_DYSYMTAB...
Okay, I looked through loader.h; didn't entirely understand it, but I think LC_DYSYMTAB just contains additional info about / indirect references to symbols in LC_SYMTAB.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76252/new/
https://reviews.llvm.org/D76252
More information about the llvm-commits
mailing list