-
Notifications
You must be signed in to change notification settings - Fork 1
/
macher.h
72 lines (72 loc) · 1.89 KB
/
macher.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
char* load_command_names[] = {
/*0x80000000*/ "LC_REQ_DYLD",
/*0x1*/ "LC_SEGMENT",
/*0x2*/ "LC_SYMTAB",
/*0x3*/ "LC_SYMSEG",
/*0x4*/ "LC_THREAD",
/*0x5*/ "LC_UNIXTHREAD",
/*0x6*/ "LC_LOADFVMLIB",
/*0x7*/ "LC_IDFVMLIB",
/*0x8*/ "LC_IDENT",
/*0x9*/ "LC_FVMFILE",
/*0xa*/ "LC_PREPAGE",
/*0xb*/ "LC_DYSYMTAB",
/*0xc*/ "LC_LOAD_DYLIB",
/*0xd*/ "LC_ID_DYLIB",
/*0xe*/ "LC_LOAD_DYLINKER",
/*0xf*/ "LC_ID_DYLINKER",
/*0x10*/ "LC_PREBOUND_DYLIB",
/*0x11*/ "LC_ROUTINES",
/*0x12*/ "LC_SUB_FRAMEWORK",
/*0x13*/ "LC_SUB_UMBRELLA",
/*0x14*/ "LC_SUB_CLIENT",
/*0x15*/ "LC_SUB_LIBRARY",
/*0x16*/ "LC_TWOLEVEL_HINTS",
/*0x17*/ "LC_PREBIND_CKSUM",
/*0x18*/ "LC_LOAD_WEAK_DYLIB",
/*0x19*/ "LC_SEGMENT_",
/*0x1a*/ "LC_ROUTINES_",
/*0x1b*/ "LC_UUID",
/*0x1c*/ "LC_RPATH",
/*0x1d*/ "LC_CODE_SIGNATURE",
/*0x1e*/ "LC_SEGMENT_SPLIT_INFO",
/*0x1f*/ "LC_REEXPORT_DYLIB",
/*0x20*/ "LC_LAZY_LOAD_DYLIB",
/*0x21*/ "LC_ENCRYPTION_INFO",
/*0x22*/ "LC_DYLD_INFO",
/*0x23*/ "LC_LOAD_UPWARD_DYLIB",
/*0x24*/ "LC_VERSION_MIN_MACOSX",
/*0x25*/ "LC_VERSION_MIN_IPHONEOS",
/*0x26*/ "LC_FUNCTION_STARTS",
/*0x27*/ "LC_DYLD_ENVIRONMENT",
/*0x28*/ "LC_MAIN",
/*0x29*/ "LC_DATA_IN_CODE",
/*0x2a*/ "LC_SOURCE_VERSION",
/*0x2b*/ "LC_DYLIB_CODE_SIGN_DRS",
/*0x2c*/ "LC_ENCRYPTION_INFO_",
/*0x2d*/ "LC_LINKER_OPTION",
/*0x2e*/ "LC_LINKER_OPTIMIZATION_HINT",
/*0x2f*/ "LC_VERSION_MIN_TVOS",
/*0x30*/ "LC_VERSION_MIN_WATCHOS",
/*0x31*/ "LC_NOTE",
/*0x32*/ "LC_BUILD_VERSION",
/*0x33*/ "LC_DYLD_EXPORTS_TRIE",
/*0x34*/ "LC_DYLD_CHAINED_FIXUPS",
/*0x35*/ "LC_FILESET_ENTRY",
};
int num_load_commands = 0x36;
char* filetype_names[] = {
/*0x0*/ "Unknown",
/*0x1*/ "MH_OBJECT",
/*0x2*/ "MH_EXECUTE",
/*0x3*/ "MH_FVMLIB",
/*0x4*/ "MH_CORE",
/*0x5*/ "MH_PRELOAD",
/*0x6*/ "MH_DYLIB",
/*0x7*/ "MH_DYLINKER",
/*0x8*/ "MH_BUNDLE",
/*0x9*/ "MH_DYLIB_STUB",
/*0xa*/ "MH_DSYM",
/*0xb*/ "MH_KEXT_BUNDLE",
/*0xc*/ "MH_FILESET",
};