aboutsummaryrefslogtreecommitdiff
path: root/lib/std/macho.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2020-09-29 22:31:12 +0200
committerJakub Konka <kubkon@jakubkonka.com>2020-10-04 15:31:47 +0200
commitccf9bba61f4134d9f57e50d64cef201c064d6b9a (patch)
tree4b4866bccc63e8a5b088f3c43d031f8aba84af25 /lib/std/macho.zig
parenta927f242019f22bda95fb4a74020966ac2bdb54e (diff)
downloadzig-ccf9bba61f4134d9f57e50d64cef201c064d6b9a.tar.gz
zig-ccf9bba61f4134d9f57e50d64cef201c064d6b9a.zip
Write out LC_DYSYMTAB together with dyld_stub_binder undef symbol
Diffstat (limited to 'lib/std/macho.zig')
-rw-r--r--lib/std/macho.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/std/macho.zig b/lib/std/macho.zig
index 565401f342..bb22991d06 100644
--- a/lib/std/macho.zig
+++ b/lib/std/macho.zig
@@ -1295,3 +1295,9 @@ pub const N_WEAK_REF: u16 = 0x40;
/// another (non-weak) definition for this symbol, the weak definition is ignored. Only symbols in a
/// coalesced section (page 23) can be marked as a weak definition.
pub const N_WEAK_DEF: u16 = 0x80;
+
+/// The N_SYMBOL_RESOLVER bit of the n_desc field indicates that the
+/// that the function is actually a resolver function and should
+/// be called to get the address of the real function to use.
+/// This bit is only available in .o files (MH_OBJECT filetype)
+pub const N_SYMBOL_RESOLVER: u16 = 0x100;