[PATCH] D93000: [lld-macho] Implement `-no_implicit_dylibs`
Jez Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 9 22:35:44 PST 2020
int3 created this revision.
int3 added reviewers: lld-macho, thakis.
Herald added a subscriber: dang.
int3 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Dylibs that are "public" -- i.e. top-level system libraries -- are considered
implicitly linked when another library re-exports them. That is, we should load
them & bind directly to their symbols instead of via their re-exporting
umbrella library. This diff implements that behavior by default, as well as an
opt-out flag.
In theory, this is just a performance optimization, but in practice it seems
that it's needed for correctness.
Will likely fix llvm.org/PR48395.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D93000
Files:
lld/MachO/Config.h
lld/MachO/Driver.cpp
lld/MachO/InputFiles.cpp
lld/MachO/Options.td
lld/test/MachO/implicit-dylibs.s
lld/test/MachO/reexport-stub.s
lld/test/MachO/stub-link.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93000.310763.patch
Type: text/x-patch
Size: 9503 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201210/f62265c4/attachment.bin>
More information about the llvm-commits
mailing list