[PATCH] D97642: [lld/mac] Implement the missing bits of -undefined
Nico Weber via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 28 12:31:10 PST 2021
thakis created this revision.
thakis added a reviewer: lld-macho.
Herald added a reviewer: int3.
Herald added a project: lld-macho.
thakis requested review of this revision.
This adds support for `-undefined dynamic_lookup`, and for
`-undefined warning` and `-undefined suppress` with `-flat_namespace`.
We just replace undefined symbols with a DynamicLookup when we hit them.
With this, `check-llvm` passes when using ld64.lld.darwinnew as host linker.
https://reviews.llvm.org/D97642
Files:
lld/MachO/SymbolTable.cpp
lld/MachO/UnwindInfoSection.cpp
lld/MachO/Writer.cpp
lld/test/MachO/treat-undef-sym.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97642.326994.patch
Type: text/x-patch
Size: 5070 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210228/fc71dc5e/attachment.bin>
More information about the llvm-commits
mailing list