Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

Load Commands
[The Mach-O Structures, Types, and Defines.]


Classes

struct  lc_str
struct  load_command
struct  section_32
struct  section_64
struct  segment_command_32
struct  segment_command_64
struct  symtab_command
struct  thread_command
struct  uuid_command

Load Command IDs (load_command::cmd)

#define LC_DYSYMTAB   KU32_C(0x0b)
#define LC_FVMFILE   KU32_C(0x09)
#define LC_ID_DYLIB   KU32_C(0x0d)
#define LC_ID_DYLINKER   KU32_C(0x0f)
#define LC_IDENT   KU32_C(0x08)
#define LC_IDFVMLIB   KU32_C(0x07)
#define LC_LOAD_DYLIB   KU32_C(0x0c)
#define LC_LOAD_DYLINKER   KU32_C(0x0e)
#define LC_LOAD_WEAK_DYLIB   (KU32_C(0x18) | LC_REQ_DYLD)
#define LC_LOADFVMLIB   KU32_C(0x06)
#define LC_PREBIND_CKSUM   KU32_C(0x17)
#define LC_PREBOUND_DYLIB   KU32_C(0x10)
#define LC_PREPAGE   KU32_C(0x0a)
#define LC_REQ_DYLD   KU32_C(0x80000000)
#define LC_ROUTINES   KU32_C(0x11)
#define LC_ROUTINES_64   KU32_C(0x1a)
#define LC_SEGMENT_32   KU32_C(0x01)
#define LC_SEGMENT_64   KU32_C(0x19)
#define LC_SUB_CLIENT   KU32_C(0x14)
#define LC_SUB_FRAMEWORK   KU32_C(0x12)
#define LC_SUB_LIBRARY   KU32_C(0x15)
#define LC_SUB_UMBRELLA   KU32_C(0x13)
#define LC_SYMSEG   KU32_C(0x03)
#define LC_SYMTAB   KU32_C(0x02)
#define LC_THREAD   KU32_C(0x04)
#define LC_TWOLEVEL_HINTS   KU32_C(0x16)
#define LC_UNIXTHREAD   KU32_C(0x05)
#define LC_UUID   KU32_C(0x1b)

Section flags (section_64::flags, section_32::flags)

#define S_16BYTE_LITERALS   0xe
#define S_4BYTE_LITERALS   0x3
#define S_8BYTE_LITERALS   0x4
#define S_ATTR_DEBUG   KU32_C(0x02000000)
#define S_ATTR_EXT_RELOC   KU32_C(0x00000200)
#define S_ATTR_LIVE_SUPPORT   KU32_C(0x08000000)
#define S_ATTR_LOC_RELOC   KU32_C(0x00000100)
#define S_ATTR_NO_DEAD_STRIP   KU32_C(0x10000000)
#define S_ATTR_NO_TOC   KU32_C(0x40000000)
#define S_ATTR_PURE_INSTRUCTIONS   KU32_C(0x80000000)
#define S_ATTR_SELF_MODIFYING_CODE   KU32_C(0x04000000)
#define S_ATTR_SOME_INSTRUCTIONS   KU32_C(0x00000400)
#define S_ATTR_STRIP_STATIC_SYMS   KU32_C(0x20000000)
#define S_COALESCED   0xb
#define S_CSTRING_LITERALS   0x2
#define S_GB_ZEROFILL   0xc
#define S_INTERPOSING   0xd
#define S_LAZY_SYMBOL_POINTERS   0x7
#define S_LITERAL_POINTERS   0x5
#define S_MOD_INIT_FUNC_POINTERS   0x9
#define S_MOD_TERM_FUNC_POINTERS   0xa
#define S_NON_LAZY_SYMBOL_POINTERS   0x6
#define S_REGULAR   0x0
#define S_SYMBOL_STUBS   0x8
#define S_ZEROFILL   0x1
#define SECTION_ATTRIBUTES   KU32_C(0xffffff00)
#define SECTION_ATTRIBUTES_SYS   KU32_C(0x00ffff00)
#define SECTION_ATTRIBUTES_USR   KU32_C(0xff000000)
#define SECTION_TYPE   KU32_C(0x000000ff)

Known Segment and Section Names.

Some of these implies special linker behaviour.

#define SECT_BSS   "__bss"
#define SECT_COMMON   "__common"
#define SECT_DATA   "__data"
#define SECT_FVMLIB_INIT0   "__fvmlib_init0"
#define SECT_FVMLIB_INIT1   "__fvmlib_init1"
#define SECT_ICON_HEADER   "__header"
#define SECT_ICON_TIFF   "__tiff"
#define SECT_OBJC_MODULES   "__module_info"
#define SECT_OBJC_REFS   "__selector_refs"
#define SECT_OBJC_STRINGS   "__selector_strs"
#define SECT_OBJC_SYMBOLS   "__symbol_table"
#define SECT_TEXT   "__text"
#define SEG_DATA   "__DATA"
#define SEG_ICON   "__ICON"
#define SEG_IMPORT   "__IMPORT"
#define SEG_LINKEDIT   "__LINKEDIT"
#define SEG_OBJC   "__OBJC"
#define SEG_PAGEZERO   "__PAGEZERO"
#define SEG_TEXT   "__TEXT"
#define SEG_UNIXSTACK   "__UNIXSTACK"

Segment flags (segment_command_64::flags, segment_command_32::flags)

#define SG_FVMLIB   KU32_C(0x00000002)
#define SG_HIGHVM   KU32_C(0x00000001)
#define SG_NORELOC   KU32_C(0x00000004)
#define SG_PROTECTED_VERSION_1   KU32_C(0x00000008)

Typedefs

typedef struct lc_str lc_str_t
typedef struct load_command load_command_t
typedef struct section_32 section_32_t
typedef struct section_64 section_64_t
typedef struct segment_command_32 segment_command_32_t
typedef struct segment_command_64 segment_command_64_t
typedef struct symtab_command symtab_command_t
typedef struct thread_command thread_command_t
typedef struct uuid_command uuid_command_t


Generated by  Doxygen 1.6.0   Back to index