Advertisement
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: 364
- flags: 0x00002000
- MH_SUBSECTIONS_VIA_SYMBOLS
- Load Command Data Structures
- ----------------------------
- cmd = 0x01, cmdsize = 260
- LC_SEGMENT
- cmd = 0x01
- cmdsize = 0x104
- segname = ''
- vmaddr = 0x00
- vmsize = 0x58
- fileoff = 0x188
- filesize = 0x53
- maxprot = 0x07
- initprot = 0x07
- nsects = 0x03
- flags = 0x00
- cmd = 0x02, cmdsize = 24
- LC_SYMTAB
- cmd = 0x02
- cmdsize = 0x18
- symoff = 0x1f4
- nsyms = 4
- stroff = 0x224
- strsize = 0x2c
- cmd = 0x0b, cmdsize = 80
- LC_DYSYMTAB
- cmd = 0x0b
- cmdsize = 0x50
- ilocalsym = 0
- nlocalsym = 1
- iextdefsym = 1
- nextdefsym = 2
- iundefsym = 3
- nundefsym = 1
- tocoff = 0x00
- ntoc = 0
- modtaboff = 0x00
- nmodtab = 0
- extrefsymoff = 0x00
- nextrefsyms = 0
- indirectsymoff = 0x00
- nindirectsyms = 0
- extreloff = 0x00
- nextrel = 0
- locreloff = 0x00
- nlocrel = 0
- String Table
- ------------
- 0000: 0 5f 6d 61 69 6e 0 5f 66 6f 6f 0 5f 5f 74 6c ._main._foo.__tl
- 0010: 76 5f 62 6f 6f 74 73 74 72 61 70 0 5f 66 6f 6f v_bootstrap._foo
- 0020: 24 74 6c 76 24 69 6e 69 74 0 0 0 $tlv$init...
- Symbol Table
- ------------
- [ i] type sect desc value name
- [ 0] x0e 2 x00 x00000054 _foo$tlv$init N_SECT
- [ 1] x0f 3 x00 x00000047 _foo N_EXT N_SECT
- [ 2] x0f 1 x00 x00000000 _main N_EXT N_SECT
- [ 3] x01 0 x00 x00000000 __tlv_bootstrap N_EXT N_UNDF
- Segment Table
- ------------
- vmaddr vmsize fileoff filesize maxprot initprot nsects flags segname
- 0x0000 0x58 0x188 0x53 0x07 0x07 0x03 0x00 ''
- 0000: 55 89 e5 56 83 ec 14 e8 0 0 0 0 58 8b 4d c U..V........X.M.
- 0010: 8b 55 8 be 0 0 0 0 c7 45 f8 0 0 0 0 89 .U.......E......
- 0020: 55 f4 89 4d f0 8b 80 1f 0 0 0 89 75 e8 ff 10 U..M........u...
- 0030: c7 0 3 0 0 0 b8 3 0 0 0 89 45 ec 8b 45 ............E..E
- 0040: e8 83 c4 14 5e 5d c3 0 0 0 0 0 0 0 0 54 ....^].........T
- 0050: 0 0 0 ...
- [i] addr size offset align reloff nreloc flags res1 res2 sectname segname
- [1] 00000 0047 000188 4 01dc 1 80000400 00 00 __text __TEXT
- S_REGULAR S_ATTR_PURE_INSTRUCTIONS S_ATTR_SOME_INSTRUCTIONS
- [2] 00054 0004 000000 2 0000 0 00000012 00 00 __thread_bss __DATA
- S_02
- [3] 00047 000c 0001cf 0 01e4 2 00000013 00 00 __thread_vars __DATA
- S_03
- Segment Contents
- ------------
- [1] 00000 0047 000188 4 01dc 1 80000400 00 00 __text __TEXT
- 0000: 55 89 e5 56 83 ec 14 e8 0 0 0 0 58 8b 4d c U..V........X.M.
- 0010: 8b 55 8 be 0 0 0 0 c7 45 f8 0 0 0 0 89 .U.......E......
- 0020: 55 f4 89 4d f0 8b 80 1f 0 0 0 89 75 e8 ff 10 U..M........u...
- 0030: c7 0 3 0 0 0 b8 3 0 0 0 89 45 ec 8b 45 ............E..E
- 0040: e8 83 c4 14 5e 5d c3 ....^].
- [0] address x0027 symbolnum 1 pcrel 1 length 2 extern 1 type 5 GENERIC_RELOC_5
- [2] 00054 0004 000000 2 0000 0 00000012 00 00 __thread_bss __DATA
- [3] 00047 000c 0001cf 0 01e4 2 00000013 00 00 __thread_vars __DATA
- 0000: 0 0 0 0 0 0 0 0 54 0 0 0 ........T...
- [0] address x0008 section 2 pcrel 0 length 2 extern 0 type 0 RELOC_VANILLA
- [1] address x0000 symbolnum 3 pcrel 0 length 2 extern 1 type 0 RELOC_VANILLA
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement