enumstd.macho.LC[src]

Fields

NONE = 0x0

No load command - invalid

SEGMENT = 0x1

segment of this file to be mapped

SYMTAB = 0x2

link-edit stab symbol table info

SYMSEG = 0x3

link-edit gdb symbol table info (obsolete)

THREAD = 0x4

thread

UNIXTHREAD = 0x5

unix thread (includes a stack)

LOADFVMLIB = 0x6

load a specified fixed VM shared library

IDFVMLIB = 0x7

fixed VM shared library identification

IDENT = 0x8

object identification info (obsolete)

FVMFILE = 0x9

fixed VM file inclusion (internal use)

PREPAGE = 0xa

prepage command (internal use)

DYSYMTAB = 0xb

dynamic link-edit symbol table info

LOAD_DYLIB = 0xc

load a dynamically linked shared library

ID_DYLIB = 0xd

dynamically linked shared lib ident

LOAD_DYLINKER = 0xe

load a dynamic linker

ID_DYLINKER = 0xf

dynamic linker identification

PREBOUND_DYLIB = 0x10

modules prebound for a dynamically

ROUTINES = 0x11

image routines

SUB_FRAMEWORK = 0x12

sub framework

SUB_UMBRELLA = 0x13

sub umbrella

SUB_CLIENT = 0x14

sub client

SUB_LIBRARY = 0x15

sub library

TWOLEVEL_HINTS = 0x16

two-level namespace lookup hints

PREBIND_CKSUM = 0x17

prebind checksum

LOAD_WEAK_DYLIB = 0x18 | LC_REQ_DYLD

load a dynamically linked shared library that is allowed to be missing (all symbols are weak imported).

SEGMENT_64 = 0x19

64-bit segment of this file to be mapped

ROUTINES_64 = 0x1a

64-bit image routines

UUID = 0x1b

the uuid

RPATH = 0x1c | LC_REQ_DYLD

runpath additions

CODE_SIGNATURE = 0x1d

local of code signature

SEGMENT_SPLIT_INFO = 0x1e

local of info to split segments

REEXPORT_DYLIB = 0x1f | LC_REQ_DYLD

load and re-export dylib

LAZY_LOAD_DYLIB = 0x20

delay load of dylib until first use

ENCRYPTION_INFO = 0x21

encrypted segment information

DYLD_INFO = 0x22

compressed dyld information

DYLD_INFO_ONLY = 0x22 | LC_REQ_DYLD

compressed dyld information only

LOAD_UPWARD_DYLIB = 0x23 | LC_REQ_DYLD

load upward dylib

VERSION_MIN_MACOSX = 0x24

build for MacOSX min OS version

VERSION_MIN_IPHONEOS = 0x25

build for iPhoneOS min OS version

FUNCTION_STARTS = 0x26

compressed table of function start addresses

DYLD_ENVIRONMENT = 0x27

string for dyld to treat like environment variable

MAIN = 0x28 | LC_REQ_DYLD

replacement for LC_UNIXTHREAD

DATA_IN_CODE = 0x29

table of non-instructions in __text

SOURCE_VERSION = 0x2A

source version used to build binary

DYLIB_CODE_SIGN_DRS = 0x2B

Code signing DRs copied from linked dylibs

ENCRYPTION_INFO_64 = 0x2C

64-bit encrypted segment information

LINKER_OPTION = 0x2D

linker options in MH_OBJECT files

LINKER_OPTIMIZATION_HINT = 0x2E

optimization hints in MH_OBJECT files

VERSION_MIN_TVOS = 0x2F

build for AppleTV min OS version

VERSION_MIN_WATCHOS = 0x30

build for Watch min OS version

NOTE = 0x31

arbitrary data included within a Mach-O file

BUILD_VERSION = 0x32

build for platform min OS version

DYLD_EXPORTS_TRIE = 0x33 | LC_REQ_DYLD

used with linkedit_data_command, payload is trie

DYLD_CHAINED_FIXUPS = 0x34 | LC_REQ_DYLD

used with linkedit_data_command

_

Source Code

Source code
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,

    _,
}