-
Notifications
You must be signed in to change notification settings - Fork 0
/
macho_enums
9 lines (8 loc) · 2.43 KB
/
macho_enums
1
2
3
4
5
6
7
8
"td enum macho_Magic {MACHO_32=0xFEEDFACE,MACHO_64=0xFEEDFACF,MACHO_FAT=0xCAFEBABE,MACHO_FAT_CIGAM=0xBEBAFECA};"
"td enum macho_FileType {MACH_OBJECT=0x1,MACH_EXECUTE=0x2,MACH_FVMLIB=0x3,MACH_CORE=0x4,MACH_PRELOAD=0x5,MACH_DYLIB=0x6,MACH_DYLINKER=0x7,MACH_BUNDLE=0x8,MACH_DYLIB_STUB=0x9,MACH_DSYM=0xA,MACH_KEXT_BUNDLE=0xB};"
"td enum macho_i386ThreadFlavor {i386_THREAD_STATE=0x1,i386_FLOAT_STATE=0x2,i386_EXCEPTION_STATE=0x3};"
"td enum macho_x86ThreadFlavor {x86_THREAD_STATE32=0x1,x86_FLOAT_STATE32=0x2,x86_EXCEPTION_STATE32=0x3,x86_THREAD_STATE64=0x4,x86_FLOAT_STATE64=0x5,x86_EXCEPTION_STATE64=0x6,x86_THREAD_STATE=0x7,x86_FLOAT_STATE=0x8,x86_EXCEPTION_STATE=0x9,x86_DEBUG_STATE32=0xA,x86_DEBUG_STATE64=0xB,x86_DEBUG_STATE=0xC,THREAD_STATE_NONE=0xD};"
"td enum macho_PPCThreadFlavor {PPC_THREAD_STATE=0x1,PPC_FLOAT_STATE=0x2,PPC_EXCEPTION_STATE=0x3,PPC_VECTOR_STATE=0x4,PPC_THREAD_STATE64=0x5,PPC_EXCEPTION_STATE64=0x6};"
"td enum macho_Flags {MACH_NOUNDEFS=0x1,MACH_INCRLINK=0x2,MACH_DYLDLINK=0x4,MACH_BINDATLOAD=0x8,MACH_PREBOUND=0x10,MACH_SPLIT_SEGS=0x20,MACH_LAZY_INIT=0x40,MACH_TWOLEVEL=0x80,MACH_FORCE_FLAT=0x100,MACH_NOMULTIDEFS=0x200,MACH_NOFIXPREBINDING=0x400,MACH_PREBINDABLE=0x800,MACH_ALLMODSBOUND=0x1000,MACH_SUBSECTIONS_VIA_SYMBOLS=0x2000,MACH_CANONICAL=0x4000,MACH_WEAK_DEFINES=0x8000,MACH_BINDS_TO_WEAK=0x10000,MACH_ALLOW_STACK_EXECUTION=0x20000,MACH_ROOT_SAFE=0x40000,MACH_SETUID_SAFE=0x80000,MACH_NO_REEXPORTED_DYLIBS=0x100000,MACH_PIE=0x200000,MACH_DEAD_STRIPPABLE_DYLIB=0x400000,MACH_HAS_TLV_DESCRIPTORS=0x800000,MACH_NO_HEAP_EXECUTION=0x1000000};"
"td enum macho_LoadCommandType {SEGMENT=0x1,SYM_TAB=0x2,SYM_SEG=0x3,THREAD=0x4,UNIX_THREAD=0x5,LOAD_FVM_LIB=0x6,ID_FVM_LIB=0x7,IDENT=0x8,FVM_FILE=0x9,PREPAGE=0xA,DY_SYM_TAB=0xB,LOAD_DYLIB=0xC,ID_DYLIB=0xD,LOAD_DYLINKER=0xE,ID_DYLINKER=0xF,PREBOUND_DYLIB=0x10,ROUTINES=0x11,SUB_FRAMEWORK=0x12,SUB_UMBRELLA=0x13,SUB_CLIENT=0x14,SUB_LIBRARY=0x15,TWOLEVEL_HINTS=0x16,PREBIND_CKSUM=0x17,LOAD_WEAK_DYLIB=0x80000018,SEGMENT_64=0x19,ROUTINES_64=0x1A,UUID=0x1B,RPATH=0x8000001c,CODE_SIGNATURE=0x1D,SEGMENT_SPLIT_INFO=0x1E,REEXPORT_DYLIB=0x8000001f,LAZY_LOAD_DYLIB=0x20,ENCRYPTION_INFO=0x21,DYLD_INFO=0x22,DYLD_INFO_ONLY=0x80000022,LOAD_UPWARD_DYLIB=0x80000023,VERSION_MIN_MAC_OSX=0x24,VERSION_MIN_IPHONE_OS=0x25,FUNCTION_STARTS=0x26,DYLD_ENVIRONMENT=0x27,MAIN=0x28,DATA_IN_CODE=0x29,SOURCE_VERSION=0x2A,DYLIB_CODE_SIGN_DRS=0x2B};"
"td enum macho_SegmentFlags {HIGH_VM=0x1,FVM_LIB=0x2,NO_RELOC=0x4,PROTECTION_VERSION_1=0x8};"