Namespaces

Values

BIND_IMMEDIATE_MASK
u8
BIND_OPCODE_ADD_ADDR_ULEB
u8
BIND_OPCODE_DONE
u8
BIND_OPCODE_DO_BIND
u8
BIND_OPCODE_DO_BIND_ADD_ADDR_IMM_SCALED
u8
BIND_OPCODE_DO_BIND_ADD_ADDR_ULEB
u8
BIND_OPCODE_DO_BIND_ULEB_TIMES_SKIPPING_ULEB
u8
BIND_OPCODE_MASK
u8
BIND_OPCODE_SET_ADDEND_SLEB
u8
BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
u8
BIND_OPCODE_SET_DYLIB_ORDINAL_ULEB
u8
BIND_OPCODE_SET_DYLIB_SPECIAL_IMM
u8
BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
u8
BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
u8
BIND_OPCODE_SET_TYPE_IMM
u8
BIND_SPECIAL_DYLIB_FLAT_LOOKUP
i8
BIND_SPECIAL_DYLIB_MAIN_EXECUTABLE
i8
BIND_SPECIAL_DYLIB_SELF
i8
BIND_SYMBOL_FLAGS_NON_WEAK_DEFINITION
u8
BIND_SYMBOL_FLAGS_WEAK_IMPORT
u8
BIND_TYPE_POINTER
u8
BIND_TYPE_TEXT_ABSOLUTE32
u8
BIND_TYPE_TEXT_PCREL32
u8
CPU_SUBTYPE_ARM_ALL
cpu_subtype_t

All ARM-based Macs

CPU_SUBTYPE_X86_64_ALL
cpu_subtype_t

All Intel-based Macs

CPU_TYPE_ARM64
cpu_type_t

CPU type targeting 64-bit ARM-based Macs

CPU_TYPE_X86_64
cpu_type_t

CPU type targeting 64-bit Intel-based Macs

CSMAGIC_BLOBWRAPPER
u32

CMS Signature, among other things

CSMAGIC_CODEDIRECTORY
u32

CodeDirectory blob

CSMAGIC_DETACHED_SIGNATURE
u32

Multi-arch collection of embedded signatures

CSMAGIC_EMBEDDED_DER_ENTITLEMENTS
u32

Embedded DER encoded entitlements

CSMAGIC_EMBEDDED_ENTITLEMENTS
u32

Embedded entitlements

CSMAGIC_EMBEDDED_SIGNATURE
u32

embedded form of signature data

CSMAGIC_EMBEDDED_SIGNATURE_OLD
u32

XXX

CSMAGIC_REQUIREMENT
u32

Single Requirement blob

CSMAGIC_REQUIREMENTS
u32

Requirements vector (internal requirements)

CSSLOT_ALTERNATE_CODEDIRECTORIES
u32

first alternate CodeDirectory, if any

CSSLOT_ALTERNATE_CODEDIRECTORY_LIMIT
u32

One past the last

CSSLOT_ALTERNATE_CODEDIRECTORY_MAX
u32

Max number of alternate CD slots

CSSLOT_APPLICATION
u32
CSSLOT_CODEDIRECTORY
u32

Slot index for CodeDirectory

CSSLOT_DER_ENTITLEMENTS
u32
CSSLOT_ENTITLEMENTS
u32
CSSLOT_IDENTIFICATIONSLOT
u32
CSSLOT_INFOSLOT
u32
CSSLOT_REQUIREMENTS
u32
CSSLOT_RESOURCEDIR
u32
CSSLOT_SIGNATURESLOT
u32

CMS Signature

CSSLOT_TICKETSLOT
u32
CSTYPE_INDEX_ENTITLEMENTS
u32

Compat with amfi

CSTYPE_INDEX_REQUIREMENTS
u32

Compat with amfi

CS_ADHOC
u32
CS_CDHASH_LEN
u32

Always - larger hashes are truncated

CS_EXECSEG_MAIN_BINARY
u32
CS_HASHTYPE_SHA1
u8
CS_HASHTYPE_SHA256
u8
CS_HASHTYPE_SHA256_TRUNCATED
u8
CS_HASHTYPE_SHA384
u8
CS_HASH_MAX_SIZE
u32

Max size of the hash we’ll support

CS_LINKER_SIGNED
u32
CS_SHA1_LEN
u32
CS_SHA256_LEN
u32
CS_SHA256_TRUNCATED_LEN
u32
CS_SIGNER_TYPE_LEGACYVPN
u32
CS_SIGNER_TYPE_MAC_APP_STORE
u32
CS_SIGNER_TYPE_UNKNOWN
u32
CS_SUPPORTSCODELIMIT64
u32
CS_SUPPORTSEXECSEG
u32
CS_SUPPORTSSCATTER
u32
CS_SUPPORTSTEAMID
u32
EXPORT_SYMBOL_FLAGS_KIND_ABSOLUTE
u8
EXPORT_SYMBOL_FLAGS_KIND_MASK
u8
EXPORT_SYMBOL_FLAGS_KIND_REGULAR
u8
EXPORT_SYMBOL_FLAGS_KIND_THREAD_LOCAL
u8
EXPORT_SYMBOL_FLAGS_KIND_WEAK_DEFINITION
u8
EXPORT_SYMBOL_FLAGS_REEXPORT
u8
EXPORT_SYMBOL_FLAGS_STUB_AND_RESOLVER
u8
FAT_CIGAM
comptime_int

NXSwapLong(FAT_MAGIC)

FAT_CIGAM_64
comptime_int

NXSwapLong(FAT_MAGIC_64)

FAT_MAGIC
comptime_int

the fat magic number

FAT_MAGIC_64
comptime_int

the 64-bit fat magic number

INDIRECT_SYMBOL_ABS
u32
INDIRECT_SYMBOL_LOCAL
u32
LC_REQ_DYLD
comptime_int

After MacOS X 10.1 when a new load command is added that is required to be unde…

MH_ALLMODSBOUND
comptime_int

indicates that this binary binds to all two-level namespace modules of its depen…

MH_ALLOW_STACK_EXECUTION
comptime_int

When this bit is set, all stacks in the task will be given stack execution privi…

MH_APP_EXTENSION_SAFE
comptime_int

The code was linked for use in an application extension.

MH_BINDATLOAD
comptime_int

the object file’s undefined references are bound by the dynamic linker when load…

MH_BINDS_TO_WEAK
comptime_int

the final linked image uses weak symbols

MH_BUNDLE
comptime_int

dynamically bound bundle file

MH_CANONICAL
comptime_int

the binary has been canonicalized via the unprebind operation

MH_CIGAM
comptime_int

NXSwapInt(MH_MAGIC)

MH_CIGAM_64
comptime_int

NXSwapInt(MH_MAGIC_64)

MH_CORE
comptime_int

core file

MH_DEAD_STRIPPABLE_DYLIB
comptime_int

Only for use on dylibs. When linking against a dylib that has this bit set, the…

MH_DSYM
comptime_int

companion file with only debug sections

MH_DYLDLINK
comptime_int

the object file is input for the dynamic linker and can’t be statically link edi…

MH_DYLIB
comptime_int

dynamically bound shared library

MH_DYLIB_STUB
comptime_int

shared library stub for static linking only, no section contents

MH_DYLINKER
comptime_int

dynamic link editor

MH_EXECUTE
comptime_int

demand paged executable file

MH_FORCE_FLAT
comptime_int

the executable is forcing all images to use flat name space bindings

MH_FVMLIB
comptime_int

fixed VM shared library file

MH_HAS_TLV_DESCRIPTORS
comptime_int

Contains a section of type S_THREAD_LOCAL_VARIABLES

MH_INCRLINK
comptime_int

the object file is the output of an incremental link against a base file and can…

MH_KEXT_BUNDLE
comptime_int

x86_64 kexts

MH_LAZY_INIT
comptime_int

the shared library init routine is to be run lazily via catching memory faults t…

MH_MAGIC
comptime_int

the mach magic number

MH_MAGIC_64
comptime_int

the 64-bit mach magic number

MH_NLIST_OUTOFSYNC_WITH_DYLDINFO
comptime_int

The external symbols listed in the nlist symbol table do not include all the sym…

MH_NOFIXPREBINDING
comptime_int

do not have dyld notify the prebinding agent about this executable

MH_NOMULTIDEFS
comptime_int

this umbrella guarantees no multiple definitions of symbols in its sub-images so…

MH_NOUNDEFS
comptime_int

the object file has no undefined references

MH_NO_HEAP_EXECUTION
comptime_int

When this bit is set, the OS will run the main executable with a non-executable …

MH_NO_REEXPORTED_DYLIBS
comptime_int

When this bit is set on a dylib, the static linker does not need to examine depe…

MH_OBJECT
comptime_int

relocatable object file

MH_PIE
comptime_int

When this bit is set, the OS will load the main executable at a random address. …

MH_PREBINDABLE
comptime_int

the binary is not prebound but can have its prebinding redone. only used when MH…

MH_PREBOUND
comptime_int

the file has its dynamic undefined references prebound.

MH_PRELOAD
comptime_int

preloaded executable file

MH_ROOT_SAFE
comptime_int

When this bit is set, the binary declares it is safe for use in processes with u…

MH_SETUID_SAFE
comptime_int

When this bit is set, the binary declares it is safe for use in processes when i…

MH_SPLIT_SEGS
comptime_int

the file has its read-only and read-write segments split

MH_SUBSECTIONS_VIA_SYMBOLS
comptime_int

safe to divide up the sections into sub-sections via symbols for dead code strip…

MH_TWOLEVEL
comptime_int

the image is using two-level name space bindings

MH_WEAK_DEFINES
comptime_int

the final linked image contains external weak symbols

N_ABS
comptime_int

symbol is absolute

N_AST
comptime_int

AST file path: name,,NO_SECT,0,0

N_BCOMM
comptime_int

begin common: name,,NO_SECT,0,0

N_BINCL
comptime_int

include file beginning: name,,NO_SECT,0,sum

N_BNSYM
comptime_int

begin nsect sym: 0,,n_sect,0,address

N_DESC_DISCARDED
u16

Used by the dynamic linker at runtime. Do not set this bit.

N_ECOML
comptime_int

end common (local name): 0,,n_sect,0,address

N_ECOMM
comptime_int

end common: name,,n_sect,0,0

N_EINCL
comptime_int

include file end: name,,NO_SECT,0,0

N_ENSYM
comptime_int

end nsect sym: 0,,n_sect,0,address

N_ENTRY
comptime_int

alternate entry: name,,n_sect,linenumber,address

N_EXCL
comptime_int

deleted include file: name,,NO_SECT,0,sum

N_EXT
comptime_int

external symbol bit, set for external symbols

N_FNAME
comptime_int

procedure name (f77 kludge): name,,NO_SECT,0,0

N_FUN
comptime_int

procedure: name,,n_sect,linenumber,address

N_GSYM
comptime_int

global symbol: name,,NO_SECT,type,0

N_INDR
comptime_int

symbol is defined to be the same as another symbol; the n_value field is an ind…

N_LBRAC
comptime_int

left bracket: 0,,NO_SECT,nesting level,address

N_LCSYM
comptime_int

.lcomm symbol: name,,n_sect,type,address

N_LENG
comptime_int

second stab entry with length information

N_LSYM
comptime_int

local sym: name,,NO_SECT,type,offset

N_OLEVEL
comptime_int

compiler -O level: name,,NO_SECT,0,0

N_OPT
comptime_int

emitted with gcc2_compiled and in gcc source

N_OSO
comptime_int

object file name: name,,0,0,st_mtime

N_PARAMS
comptime_int

compiler parameters: name,,NO_SECT,0,0

N_PBUD
comptime_int

symbol is undefined and the image is using a prebound value for the symbol

N_PEXT
comptime_int

private external symbol bit

N_PSYM
comptime_int

parameter: name,,NO_SECT,type,offset

N_RBRAC
comptime_int

right bracket: 0,,NO_SECT,nesting level,address

N_RSYM
comptime_int

register sym: name,,NO_SECT,type,register

N_SECT
comptime_int

symbol is defined in the section number given in n_sect

N_SLINE
comptime_int

src line: 0,,n_sect,linenumber,address

N_SO
comptime_int

source file name: name,,n_sect,0,address

N_SOL
comptime_int

#included file name: name,,n_sect,0,address

N_SSYM
comptime_int

structure elt: name,,NO_SECT,type,struct_offset

N_STAB
comptime_int

if any of these bits set, a symbolic debugging entry

N_STSYM
comptime_int

static symbol: name,,n_sect,type,address

N_SYMBOL_RESOLVER
u16

The N_SYMBOL_RESOLVER bit of the n_desc field indicates that the that the funct…

N_TYPE
comptime_int

mask for the type bits

N_UNDF
comptime_int

symbol is undefined

N_VERSION
comptime_int

compiler version: name,,NO_SECT,0,0

N_WEAK_DEF
u16

Indicates that this symbol is a weak definition. If the static linker or the dyn…

N_WEAK_REF
u16

Indicates that this symbol is a weak reference. If the dynamic linker cannot fin…

REBASE_IMMEDIATE_MASK
u8
REBASE_OPCODE_ADD_ADDR_IMM_SCALED
u8
REBASE_OPCODE_ADD_ADDR_ULEB
u8
REBASE_OPCODE_DONE
u8
REBASE_OPCODE_DO_REBASE_ADD_ADDR_ULEB
u8
REBASE_OPCODE_DO_REBASE_IMM_TIMES
u8
REBASE_OPCODE_DO_REBASE_ULEB_TIMES
u8
REBASE_OPCODE_DO_REBASE_ULEB_TIMES_SKIPPING_ULEB
u8
REBASE_OPCODE_MASK
u8
REBASE_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
u8
REBASE_OPCODE_SET_TYPE_IMM
u8
REBASE_TYPE_POINTER
u8
REBASE_TYPE_TEXT_ABSOLUTE32
u8
REBASE_TYPE_TEXT_PCREL32
u8
REFERENCED_DYNAMICALLY
u16

Must be set for any defined symbol that is referenced by dynamic-loader APIs (su…

REFERENCE_FLAG_DEFINED
u16

This symbol is defined in this module.

REFERENCE_FLAG_PRIVATE_DEFINED
u16

This symbol is defined in this module and is visible only to modules within this…

REFERENCE_FLAG_PRIVATE_UNDEFINED_LAZY
u16

This symbol is defined in another module in this file, is a lazy (function) symb…

REFERENCE_FLAG_PRIVATE_UNDEFINED_NON_LAZY
u16

This symbol is defined in another module in this file, is a non-lazy (data) symb…

REFERENCE_FLAG_UNDEFINED_LAZY
u16

This symbol is a reference to an external lazy symbol—that is, to a function cal…

REFERENCE_FLAG_UNDEFINED_NON_LAZY
u16

This symbol is a reference to an external non-lazy (data) symbol.

SECTION_ATTRIBUTES
comptime_int

24 section attributes

SECTION_TYPE
comptime_int

The flags field of a section structure is separated into two parts a section ty…

S_16BYTE_LITERALS
comptime_int

section with only 16 byte literals

S_4BYTE_LITERALS
comptime_int

section with only 4 byte literals

S_8BYTE_LITERALS
comptime_int

section with only 8 byte literals

S_ATTR_DEBUG
comptime_int

a debug section

S_ATTR_EXT_RELOC
comptime_int

section has external relocation entries

S_ATTR_LIVE_SUPPORT
comptime_int

blocks are live if they reference live blocks

S_ATTR_LOC_RELOC
comptime_int

section has local relocation entries

S_ATTR_NO_DEAD_STRIP
comptime_int

no dead stripping

S_ATTR_NO_TOC
comptime_int

section contains coalesced symbols that are not to be in a ranlib table of cont…

S_ATTR_PURE_INSTRUCTIONS
comptime_int

section contains only true machine instructions

S_ATTR_SELF_MODIFYING_CODE
comptime_int

used with x86 code stubs written on by dyld

S_ATTR_SOME_INSTRUCTIONS
comptime_int

section contains some machine instructions

S_ATTR_STRIP_STATIC_SYMS
comptime_int

ok to strip static symbols in this section in files with the MH_DYLDLINK flag

S_COALESCED
comptime_int

section contains symbols that are to be coalesced

S_CSTRING_LITERALS
comptime_int

section with only literal C string

S_DTRACE_DOF
comptime_int

section contains DTrace Object Format

S_GB_ZEROFILL
comptime_int

zero fill on demand section (that can be larger than 4 gigabytes)

S_INIT_FUNC_OFFSETS
comptime_int

32-bit offsets to initializers

S_INTERPOSING
comptime_int

section with only pairs of function pointers for interposing

S_LAZY_DYLIB_SYMBOL_POINTERS
comptime_int

section with only lazy symbol pointers to lazy loaded dylibs

S_LAZY_SYMBOL_POINTERS
comptime_int

section with only lazy symbol pointers

S_LITERAL_POINTERS
comptime_int

section with only pointers to

S_MOD_INIT_FUNC_POINTERS
comptime_int

section with only function pointers for initialization

S_MOD_TERM_FUNC_POINTERS
comptime_int

section with only function pointers for termination

S_NON_LAZY_SYMBOL_POINTERS
comptime_int

section with only non-lazy symbol pointers

S_REGULAR
comptime_int

regular section

S_SYMBOL_STUBS
comptime_int

section with only symbol stubs, byte size of stub in the reserved2 field

S_THREAD_LOCAL_INIT_FUNCTION_POINTERS
comptime_int

functions to call to initialize TLV values

S_THREAD_LOCAL_REGULAR
comptime_int

template of initial values for TLVs

S_THREAD_LOCAL_VARIABLES
comptime_int

TLV descriptors

S_THREAD_LOCAL_VARIABLE_POINTERS
comptime_int

pointers to TLV descriptors

S_THREAD_LOCAL_ZEROFILL
comptime_int

template of initial values for TLVs

S_ZEROFILL
comptime_int

zero fill on demand section

UNWIND_ARM64_DWARF_SECTION_OFFSET
u32
UNWIND_ARM64_FRAMELESS_STACK_SIZE_MASK
u32
UNWIND_ARM64_FRAME_D10_D11_PAIR
u32
UNWIND_ARM64_FRAME_D12_D13_PAIR
u32
UNWIND_ARM64_FRAME_D14_D15_PAIR
u32
UNWIND_ARM64_FRAME_D8_D9_PAIR
u32
UNWIND_ARM64_FRAME_X19_X20_PAIR
u32
UNWIND_ARM64_FRAME_X21_X22_PAIR
u32
UNWIND_ARM64_FRAME_X23_X24_PAIR
u32
UNWIND_ARM64_FRAME_X25_X26_PAIR
u32
UNWIND_ARM64_FRAME_X27_X28_PAIR
u32
UNWIND_ARM64_MODE_MASK
u32
UNWIND_HAS_LSDA
u32
UNWIND_IS_NOT_FUNCTION_START
u32
UNWIND_PERSONALITY_MASK
u32
UNWIND_SECTION_VERSION
comptime_int
UNWIND_X86_64_DWARF_SECTION_OFFSET
u32
UNWIND_X86_64_FRAMELESS_STACK_ADJUST
u32
UNWIND_X86_64_FRAMELESS_STACK_REG_COUNT
u32
UNWIND_X86_64_FRAMELESS_STACK_REG_PERMUTATION
u32
UNWIND_X86_64_FRAMELESS_STACK_SIZE
u32
UNWIND_X86_64_MODE_MASK
u32
UNWIND_X86_64_RBP_FRAME_OFFSET
u32
UNWIND_X86_64_RBP_FRAME_REGISTERS
u32