Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Mach-O Object File
- Header
- ------
- magic: 0xfeedface MH_MAGIC
- cputype: 7 CPU_TYPE_I386
- cpusubtype: 3 CPU_SUBTYPE_I386_ALL
- filetype: 1 MH_OBJECT
- ncmds: 3
- sizeofcmds: 296
- flags: 0x00002000
- MH_SUBSECTIONS_VIA_SYMBOLS
- Load Command Data Structures
- ----------------------------
- cmd = 0x01, cmdsize = 192
- LC_SEGMENT
- cmd = 0x01
- cmdsize = 0xc0
- segname = ''
- vmaddr = 0x00
- vmsize = 0x42
- fileoff = 0x144
- filesize = 0x42
- maxprot = 0x07
- initprot = 0x07
- nsects = 0x02
- flags = 0x00
- cmd = 0x02, cmdsize = 24
- LC_SYMTAB
- cmd = 0x02
- cmdsize = 0x18
- symoff = 0x19c
- nsyms = 2
- stroff = 0x1b4
- strsize = 0x0c
- cmd = 0x0b, cmdsize = 80
- LC_DYSYMTAB
- cmd = 0x0b
- cmdsize = 0x50
- ilocalsym = 0
- nlocalsym = 0
- iextdefsym = 0
- nextdefsym = 1
- iundefsym = 1
- nundefsym = 1
- tocoff = 0x00
- ntoc = 0
- modtaboff = 0x00
- nmodtab = 0
- extrefsymoff = 0x00
- nextrefsyms = 0
- indirectsymoff = 0x198
- nindirectsyms = 1
- extreloff = 0x00
- nextrel = 0
- locreloff = 0x00
- nlocrel = 0
- String Table
- ------------
- 0000: 0 5f 6d 61 69 6e 0 5f 66 6f 6f 0 ._main._foo.
- Symbol Table
- ------------
- [ i] type sect desc value name
- [ 0] x0f 1 x00 x00000000 _main N_EXT N_SECT
- [ 1] x01 0 x200 x00000004 _foo N_EXT N_UNDF
- Indirect Symbol Table
- [0] x00000001 _foo
- Segment Table
- ------------
- vmaddr vmsize fileoff filesize maxprot initprot nsects flags segname
- 0x0000 0x42 0x144 0x42 0x07 0x07 0x02 0x00 ''
- 0000: 55 89 e5 56 83 ec 10 e8 0 0 0 0 58 8b 4d c U..V........X.M.
- 0010: 8b 55 8 be 0 0 0 0 8b 80 32 0 0 0 c7 45 .U........2....E
- 0020: f8 0 0 0 0 89 55 f4 89 4d f0 c7 0 3 0 0 ......U..M......
- 0030: 0 8b 0 89 45 ec 89 f0 83 c4 10 5e 5d c3 0 0 ....E......^]...
- 0040: 0 0 ..
- [i] addr size offset align reloff nreloc flags res1 res2 sectname segname
- [1] 00000 003e 000144 4 0188 2 80000400 00 00 __text __TEXT
- S_REGULAR S_ATTR_PURE_INSTRUCTIONS S_ATTR_SOME_INSTRUCTIONS
- [2] 0003e 0004 000182 0 0000 0 00000006 00 00 __pointers __IMPORT
- S_NON_LAZY_SYMBOL_POINTERS
- Segment Contents
- ------------
- [1] 00000 003e 000144 4 0188 2 80000400 00 00 __text __TEXT
- 0000: 55 89 e5 56 83 ec 10 e8 0 0 0 0 58 8b 4d c U..V........X.M.
- 0010: 8b 55 8 be 0 0 0 0 8b 80 32 0 0 0 c7 45 .U........2....E
- 0020: f8 0 0 0 0 89 55 f4 89 4d f0 c7 0 3 0 0 ......U..M......
- 0030: 0 8b 0 89 45 ec 89 f0 83 c4 10 5e 5d c3 ....E......^].
- [0] address x001a pcrel 0 length 2 value x3e type 4 RELOC_LOCAL_SECTDIFF
- [1] address x0000 pcrel 0 length 2 value xc type 1 RELOC_PAIR
- [2] 0003e 0004 000182 0 0000 0 00000006 00 00 __pointers __IMPORT
- 0000: 0 0 0 0 ....
Advertisement
Add Comment
Please, Sign In to add comment