diff options
author | Nico Weber <thakis@chromium.org> | 2021-03-01 15:25:10 -0500 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2021-03-01 15:25:10 -0500 |
commit | 8174f33dc9bf34e1cde57931e2e028bd4d49c98e (patch) | |
tree | 0f1e754828e5d20781e0247d301c6ad3693a9c3b /lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h | |
parent | 3e6b6cee00819d256f30e84aec7ae634e0725534 (diff) | |
download | llvm-8174f33dc9bf34e1cde57931e2e028bd4d49c98e.zip llvm-8174f33dc9bf34e1cde57931e2e028bd4d49c98e.tar.gz llvm-8174f33dc9bf34e1cde57931e2e028bd4d49c98e.tar.bz2 |
[lld/mac] Add support for -flat_namespace
-flat_namespace makes lld emit binaries that use name lookup that's more in
line with other POSIX systems: Instead of looking up symbols as (dylib,name)
pairs by dyld, they're instead looked up just by name.
-flat_namespace has three effects:
1. MH_TWOLEVEL and MH_NNOUNDEFS are no longer set in the Mach-O header
2. All symbols use BIND_SPECIAL_DYLIB_FLAT_LOOKUP as ordinal
3. When a dylib is added to the link, its dependent dylibs are also added,
so that lld can verify that no undefined symbols remain at the end of
a link with -flat_namespace. These transitive dylibs are added for symbol
resolution, but they are not emitted in LC_LOAD_COMMANDs.
-undefined with -flat_namespace still isn't implemented. Before this change,
it was impossible to hit that combination because -flat_namespace caused a
diagnostic. Now that it no longer does, emit a dedicated temporary diagnostic
when both flags are used.
Differential Revision: https://reviews.llvm.org/D97641
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h')
0 files changed, 0 insertions, 0 deletions