diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2021-03-17 00:21:56 +0100 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2021-03-17 12:16:36 +0100 |
| commit | e5234c0e9ee1d60b7a87df8de0350fee2d4e6c55 (patch) | |
| tree | 42a31d139b5388c886da523d29543815b2699363 /lib/std | |
| parent | b9fa80e5880ed04f0cfd29f753297cbfebf77f2d (diff) | |
| download | zig-e5234c0e9ee1d60b7a87df8de0350fee2d4e6c55.tar.gz zig-e5234c0e9ee1d60b7a87df8de0350fee2d4e6c55.zip | |
macho: offset table part of GOT
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/macho.zig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/std/macho.zig b/lib/std/macho.zig index 6785abffca..bca222b5b7 100644 --- a/lib/std/macho.zig +++ b/lib/std/macho.zig @@ -1422,6 +1422,14 @@ pub const EXPORT_SYMBOL_FLAGS_KIND_WEAK_DEFINITION: u8 = 0x04; pub const EXPORT_SYMBOL_FLAGS_REEXPORT: u8 = 0x08; pub const EXPORT_SYMBOL_FLAGS_STUB_AND_RESOLVER: u8 = 0x10; +// An indirect symbol table entry is simply a 32bit index into the symbol table +// to the symbol that the pointer or stub is refering to. Unless it is for a +// non-lazy symbol pointer section for a defined symbol which strip(1) as +// removed. In which case it has the value INDIRECT_SYMBOL_LOCAL. If the +// symbol was also absolute INDIRECT_SYMBOL_ABS is or'ed with that. +pub const INDIRECT_SYMBOL_LOCAL: u32 = 0x80000000; +pub const INDIRECT_SYMBOL_ABS: u32 = 0x40000000; + // Codesign consts and structs taken from: // https://opensource.apple.com/source/xnu/xnu-6153.81.5/osfmk/kern/cs_blobs.h.auto.html |
