core.sys.darwin.mach.loader

This file describes the format of Mach-O object files.

D header file for mach-o/loader.h from the macOS 10.15 SDK.

Types 48

structmach_header
Fields
uint magic
int cputype
int cpusubtype
uint filetype
uint ncmds
uint sizeofcmds
uint flags
structmach_header_64
Fields
uint magic
int cputype
int cpusubtype
uint filetype
uint ncmds
uint sizeofcmds
uint flags
uint reserved
structload_command
Fields
uint cmd
uint cmdsize
unionlc_str
Fields
uint offset
structsegment_command
Fields
uint cmd
uint cmdsize
char[16] segname
uint vmaddr
uint vmsize
uint fileoff
uint filesize
int maxprot
int initprot
uint nsects
uint flags
structsegment_command_64
Fields
uint cmd
uint cmdsize
char[16] segname
ulong vmaddr
ulong vmsize
ulong fileoff
ulong filesize
int maxprot
int initprot
uint nsects
uint flags
structsection
Fields
char[16] sectname
char[16] segname
uint addr
uint size
uint offset
uint align_
uint reloff
uint nreloc
uint flags
uint reserved1
uint reserved2
structsection_64
Fields
char[16] sectname
char[16] segname
ulong addr
ulong size
uint offset
uint align_
uint reloff
uint nreloc
uint flags
uint reserved1
uint reserved2
uint reserved3
structfvmlib
Fields
lc_str name
uint minor_version
uint header_addr
structfvmlib_command
Fields
uint cmd
uint cmdsize
fvmlib fvmlib_
structdylib
Fields
lc_str name
uint timestamp
uint current_version
uint compatibility_version
structdylib_command
Fields
uint cmd
uint cmdsize
dylib dylib_
structsub_framework_command
Fields
uint cmd
uint cmdsize
lc_str umbrella
structsub_client_command
Fields
uint cmd
uint cmdsize
lc_str client
structsub_umbrella_command
Fields
uint cmd
uint cmdsize
lc_str sub_umbrella
structsub_library_command
Fields
uint cmd
uint cmdsize
lc_str sub_library
structprebound_dylib_command
Fields
uint cmd
uint cmdsize
lc_str name
uint nmodules
lc_str linked_modules
structdylinker_command
Fields
uint cmd
uint cmdsize
lc_str name
structthread_command
Fields
uint cmd
uint cmdsize
structroutines_command
Fields
uint cmd
uint cmdsize
uint init_address
uint init_module
uint reserved1
uint reserved2
uint reserved3
uint reserved4
uint reserved5
uint reserved6
structroutines_command_64
Fields
uint cmd
uint cmdsize
ulong init_address
ulong init_module
ulong reserved1
ulong reserved2
ulong reserved3
ulong reserved4
ulong reserved5
ulong reserved6
structsymtab_command
Fields
uint cmd
uint cmdsize
uint symoff
uint nsyms
uint stroff
uint strsize
structdysymtab_command
Fields
uint cmd
uint cmdsize
uint ilocalsym
uint nlocalsym
uint iextdefsym
uint nextdefsym
uint iundefsym
uint nundefsym
uint tocoff
uint ntoc
uint modtaboff
uint nmodtab
uint extrefsymoff
uint nextrefsyms
uint indirectsymoff
uint nindirectsyms
uint extreloff
uint nextrel
uint locreloff
uint nlocrel
structdylib_table_of_contents
Fields
uint symbol_index
uint module_index
structdylib_module
Fields
uint module_name
uint iextdefsym
uint nextdefsym
uint irefsym
uint nrefsym
uint ilocalsym
uint nlocalsym
uint iextrel
uint nextrel
uint iinit_iterm
uint ninit_nterm
uint objc_module_info_addr
uint objc_module_info_size
structdylib_module_64
Fields
uint module_name
uint iextdefsym
uint nextdefsym
uint irefsym
uint nrefsym
uint ilocalsym
uint nlocalsym
uint iextrel
uint nextrel
uint iinit_iterm
uint ninit_nterm
uint objc_module_info_size
ulong objc_module_info_addr
structdylib_reference
Fields
private uint storage
Methods
uint isym()() @property const pure nothrow @nogc @safe
void isym()(uint v) @property @safe pure nothrow @nogc
uint flags()() @property const pure nothrow @nogc @safe
void flags()(uint v) @property pure nothrow @nogc @safe
structtwolevel_hints_command
Fields
uint cmd
uint cmdsize
uint offset
uint nhints
structtwolevel_hint
Fields
private uint storage
Methods
uint isub_image()() @property const pure nothrow @nogc @safe
void isub_image()(uint v) @property pure nothrow @nogc @safe
uint itoc()() @property const pure nothrow @nogc @safe
void itoc()(uint v) @property pure nothrow @nogc @safe
structprebind_cksum_command
Fields
uint cmd
uint cmdsize
uint cksum
structuuid_command
Fields
uint cmd
uint cmdsize
ubyte[16] uuid
structrpath_command
Fields
uint cmd
uint cmdsize
lc_str path
structlinkedit_data_command
Fields
uint cmd
uint cmdsize
uint dataoff
uint datasize
structencryption_info_command
Fields
uint cmd
uint cmdsize
uint cryptoff
uint cryptsize
uint cryptid
structencryption_info_command_64
Fields
uint cmd
uint cmdsize
uint cryptoff
uint cryptsize
uint cryptid
uint pad
structversion_min_command
Fields
uint cmd
uint cmdsize
uint version_
uint sdk
structbuild_version_command
Fields
uint cmd
uint cmdsize
uint platform
uint minos
uint sdk
uint ntools
structbuild_tool_version
Fields
uint tool
uint version_
structdyld_info_command
Fields
uint cmd
uint cmdsize
uint rebase_off
uint rebase_size
uint bind_off
uint bind_size
uint weak_bind_off
uint weak_bind_size
uint lazy_bind_off
uint lazy_bind_size
uint export_off
uint export_size
structlinker_option_command
Fields
uint cmd
uint cmdsize
uint count
structsymseg_command
Fields
uint cmd
uint cmdsize
uint offset
uint size
structident_command
Fields
uint cmd
uint cmdsize
structfvmfile_command
Fields
uint cmd
uint cmdsize
lc_str name
uint header_addr
structentry_point_command
Fields
uint cmd
uint cmdsize
ulong entryoff
ulong stacksize
structsource_version_command
Fields
uint cmd
uint cmdsize
ulong version_
structdata_in_code_entry
Fields
uint offset
ushort length
ushort kind
structtlv_descriptor
Fields
void * function(tlv_descriptor *) thunk
c_ulong key
c_ulong offset
structnote_command
Fields
uint cmd
uint cmdsize
char[16] data_owner
ulong offset
ulong size

Variables 2

enumvarLC_REQ_DYLD = 0x80000000
enumvarLC_LOAD_WEAK_DYLIB = 0x18 | LC_REQ_DYLD