[PATCH] D78342: [lld] Add archive file support to Mach-O backend
Jez Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 5 17:17:22 PDT 2020
int3 added inline comments.
================
Comment at: lld/MachO/SymbolTable.cpp:77
+ std::tie(s, wasInserted) = insert(name);
+
+ if (wasInserted)
----------------
Ktwu wrote:
> MaskRay wrote:
> > How does an archive symbol interact with a DylibSymbol?
> By "interact" do you mean if there's a conflict -- a dylib and an archive both expose a symbol with the same name? I assume there shouldn't be issues if symbol names are unique...
>
> @int3 you know more about dylibs; do you see potential issues?
We definitely need to account for symbol name collisions. I just commented on {D79114}, but basically I've just been feeding various inputs to ld64 and emulating its output, though we should probably figure out the details of its symbol table implementation sometime...
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78342/new/
https://reviews.llvm.org/D78342
More information about the llvm-commits
mailing list