enum LC [src]
Fields
NONE = 0x0No load command - invalid
SEGMENT = 0x1segment of this file to be mapped
SYMTAB = 0x2link-edit stab symbol table info
SYMSEG = 0x3link-edit gdb symbol table info (obsolete)
THREAD = 0x4thread
UNIXTHREAD = 0x5unix thread (includes a stack)
LOADFVMLIB = 0x6load a specified fixed VM shared library
IDFVMLIB = 0x7fixed VM shared library identification
IDENT = 0x8object identification info (obsolete)
FVMFILE = 0x9fixed VM file inclusion (internal use)
PREPAGE = 0xaprepage command (internal use)
DYSYMTAB = 0xbdynamic link-edit symbol table info
LOAD_DYLIB = 0xcload a dynamically linked shared library
ID_DYLIB = 0xddynamically linked shared lib ident
LOAD_DYLINKER = 0xeload a dynamic linker
ID_DYLINKER = 0xfdynamic linker identification
PREBOUND_DYLIB = 0x10modules prebound for a dynamically
ROUTINES = 0x11image routines
SUB_FRAMEWORK = 0x12sub framework
SUB_UMBRELLA = 0x13sub umbrella
SUB_CLIENT = 0x14sub client
SUB_LIBRARY = 0x15sub library
TWOLEVEL_HINTS = 0x16two-level namespace lookup hints
PREBIND_CKSUM = 0x17prebind checksum
LOAD_WEAK_DYLIB = 0x18 | LC_REQ_DYLDload a dynamically linked shared library that is allowed to be missing
(all symbols are weak imported).
SEGMENT_64 = 0x1964-bit segment of this file to be mapped
ROUTINES_64 = 0x1a64-bit image routines
UUID = 0x1bthe uuid
RPATH = 0x1c | LC_REQ_DYLDrunpath additions
CODE_SIGNATURE = 0x1dlocal of code signature
SEGMENT_SPLIT_INFO = 0x1elocal of info to split segments
REEXPORT_DYLIB = 0x1f | LC_REQ_DYLDload and re-export dylib
LAZY_LOAD_DYLIB = 0x20delay load of dylib until first use
ENCRYPTION_INFO = 0x21encrypted segment information
DYLD_INFO = 0x22compressed dyld information
DYLD_INFO_ONLY = 0x22 | LC_REQ_DYLDcompressed dyld information only
LOAD_UPWARD_DYLIB = 0x23 | LC_REQ_DYLDload upward dylib
VERSION_MIN_MACOSX = 0x24build for MacOSX min OS version
VERSION_MIN_IPHONEOS = 0x25build for iPhoneOS min OS version
FUNCTION_STARTS = 0x26compressed table of function start addresses
DYLD_ENVIRONMENT = 0x27string for dyld to treat like environment variable
MAIN = 0x28 | LC_REQ_DYLDreplacement for LC_UNIXTHREAD
DATA_IN_CODE = 0x29table of non-instructions in __text
SOURCE_VERSION = 0x2Asource version used to build binary
DYLIB_CODE_SIGN_DRS = 0x2BCode signing DRs copied from linked dylibs
ENCRYPTION_INFO_64 = 0x2C64-bit encrypted segment information
LINKER_OPTION = 0x2Dlinker options in MH_OBJECT files
LINKER_OPTIMIZATION_HINT = 0x2Eoptimization hints in MH_OBJECT files
VERSION_MIN_TVOS = 0x2Fbuild for AppleTV min OS version
VERSION_MIN_WATCHOS = 0x30build for Watch min OS version
NOTE = 0x31arbitrary data included within a Mach-O file
BUILD_VERSION = 0x32build for platform min OS version
DYLD_EXPORTS_TRIE = 0x33 | LC_REQ_DYLDused with linkedit_data_command, payload is trie
DYLD_CHAINED_FIXUPS = 0x34 | LC_REQ_DYLDused with linkedit_data_command
_
Source
pub const LC = enum(u32) {
/// No load command - invalid
NONE = 0x0,
/// segment of this file to be mapped
SEGMENT = 0x1,
/// link-edit stab symbol table info
SYMTAB = 0x2,
/// link-edit gdb symbol table info (obsolete)
SYMSEG = 0x3,
/// thread
THREAD = 0x4,
/// unix thread (includes a stack)
UNIXTHREAD = 0x5,
/// load a specified fixed VM shared library
LOADFVMLIB = 0x6,
/// fixed VM shared library identification
IDFVMLIB = 0x7,
/// object identification info (obsolete)
IDENT = 0x8,
/// fixed VM file inclusion (internal use)
FVMFILE = 0x9,
/// prepage command (internal use)
PREPAGE = 0xa,
/// dynamic link-edit symbol table info
DYSYMTAB = 0xb,
/// load a dynamically linked shared library
LOAD_DYLIB = 0xc,
/// dynamically linked shared lib ident
ID_DYLIB = 0xd,
/// load a dynamic linker
LOAD_DYLINKER = 0xe,
/// dynamic linker identification
ID_DYLINKER = 0xf,
/// modules prebound for a dynamically
PREBOUND_DYLIB = 0x10,
/// image routines
ROUTINES = 0x11,
/// sub framework
SUB_FRAMEWORK = 0x12,
/// sub umbrella
SUB_UMBRELLA = 0x13,
/// sub client
SUB_CLIENT = 0x14,
/// sub library
SUB_LIBRARY = 0x15,
/// two-level namespace lookup hints
TWOLEVEL_HINTS = 0x16,
/// prebind checksum
PREBIND_CKSUM = 0x17,
/// load a dynamically linked shared library that is allowed to be missing
/// (all symbols are weak imported).
LOAD_WEAK_DYLIB = 0x18 | LC_REQ_DYLD,
/// 64-bit segment of this file to be mapped
SEGMENT_64 = 0x19,
/// 64-bit image routines
ROUTINES_64 = 0x1a,
/// the uuid
UUID = 0x1b,
/// runpath additions
RPATH = 0x1c | LC_REQ_DYLD,
/// local of code signature
CODE_SIGNATURE = 0x1d,
/// local of info to split segments
SEGMENT_SPLIT_INFO = 0x1e,
/// load and re-export dylib
REEXPORT_DYLIB = 0x1f | LC_REQ_DYLD,
/// delay load of dylib until first use
LAZY_LOAD_DYLIB = 0x20,
/// encrypted segment information
ENCRYPTION_INFO = 0x21,
/// compressed dyld information
DYLD_INFO = 0x22,
/// compressed dyld information only
DYLD_INFO_ONLY = 0x22 | LC_REQ_DYLD,
/// load upward dylib
LOAD_UPWARD_DYLIB = 0x23 | LC_REQ_DYLD,
/// build for MacOSX min OS version
VERSION_MIN_MACOSX = 0x24,
/// build for iPhoneOS min OS version
VERSION_MIN_IPHONEOS = 0x25,
/// compressed table of function start addresses
FUNCTION_STARTS = 0x26,
/// string for dyld to treat like environment variable
DYLD_ENVIRONMENT = 0x27,
/// replacement for LC_UNIXTHREAD
MAIN = 0x28 | LC_REQ_DYLD,
/// table of non-instructions in __text
DATA_IN_CODE = 0x29,
/// source version used to build binary
SOURCE_VERSION = 0x2A,
/// Code signing DRs copied from linked dylibs
DYLIB_CODE_SIGN_DRS = 0x2B,
/// 64-bit encrypted segment information
ENCRYPTION_INFO_64 = 0x2C,
/// linker options in MH_OBJECT files
LINKER_OPTION = 0x2D,
/// optimization hints in MH_OBJECT files
LINKER_OPTIMIZATION_HINT = 0x2E,
/// build for AppleTV min OS version
VERSION_MIN_TVOS = 0x2F,
/// build for Watch min OS version
VERSION_MIN_WATCHOS = 0x30,
/// arbitrary data included within a Mach-O file
NOTE = 0x31,
/// build for platform min OS version
BUILD_VERSION = 0x32,
/// used with linkedit_data_command, payload is trie
DYLD_EXPORTS_TRIE = 0x33 | LC_REQ_DYLD,
/// used with linkedit_data_command
DYLD_CHAINED_FIXUPS = 0x34 | LC_REQ_DYLD,
_,
}