diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2020-12-10 08:32:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-10 08:32:59 +0100 |
| commit | 23c1b7faee13f95bce6ba48051b9ac1a1fab9576 (patch) | |
| tree | 998dee2967d421e2368c61542b2cf3d153b1a5a6 /lib | |
| parent | 8951f72fa39de019683b233f45a3b45d83b57904 (diff) | |
| parent | 44e2f210bb3fee78d339bc5c75822e0311600f70 (diff) | |
| download | zig-23c1b7faee13f95bce6ba48051b9ac1a1fab9576.tar.gz zig-23c1b7faee13f95bce6ba48051b9ac1a1fab9576.zip | |
Merge pull request #7368 from kubkon/macho-trie-cleanup
stage2: MachO export trie cleanup
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/std/macho.zig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/std/macho.zig b/lib/std/macho.zig index 90b6ca74e7..ec0d23cd92 100644 --- a/lib/std/macho.zig +++ b/lib/std/macho.zig @@ -1333,6 +1333,15 @@ pub const N_WEAK_DEF: u16 = 0x80; /// This bit is only available in .o files (MH_OBJECT filetype) pub const N_SYMBOL_RESOLVER: u16 = 0x100; +// The following are used on the flags byte of a terminal node // in the export information. +pub const EXPORT_SYMBOL_FLAGS_KIND_MASK: u8 = 0x03; +pub const EXPORT_SYMBOL_FLAGS_KIND_REGULAR: u8 = 0x00; +pub const EXPORT_SYMBOL_FLAGS_KIND_THREAD_LOCAL: u8 = 0x01; +pub const EXPORT_SYMBOL_FLAGS_KIND_ABSOLUTE: u8 = 0x02; +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; + // Codesign consts and structs taken from: // https://opensource.apple.com/source/xnu/xnu-6153.81.5/osfmk/kern/cs_blobs.h.auto.html |
