[all-commits] [llvm/llvm-project] 0658fc: [lld/mac] Implement the missing bits of -undefined
Nico Weber via All-commits
all-commits at lists.llvm.org
Mon Mar 1 12:31:19 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0658fc654c758d0bfab7d119ecf94caf5e5276d5
https://github.com/llvm/llvm-project/commit/0658fc654c758d0bfab7d119ecf94caf5e5276d5
Author: Nico Weber <thakis at chromium.org>
Date: 2021-03-01 (Mon, 01 Mar 2021)
Changed paths:
M lld/MachO/SymbolTable.cpp
M lld/MachO/UnwindInfoSection.cpp
M lld/MachO/Writer.cpp
M lld/test/MachO/treat-undef-sym.s
Log Message:
-----------
[lld/mac] Implement the missing bits of -undefined
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.
Differential Revision: https://reviews.llvm.org/D97642
More information about the All-commits
mailing list