Advertisement
Guest User

Untitled

a guest
Jan 9th, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.63 KB | None | 0 0
  1. Mach-O Object File
  2. Header
  3. ------
  4. magic: 0xfeedface MH_MAGIC
  5. cputype: 7 CPU_TYPE_I386
  6. cpusubtype: 3 CPU_SUBTYPE_I386_ALL
  7. filetype: 1 MH_OBJECT
  8. ncmds: 3
  9. sizeofcmds: 364
  10. flags: 0x00002000
  11. MH_SUBSECTIONS_VIA_SYMBOLS
  12.  
  13. Load Command Data Structures
  14. ----------------------------
  15. cmd = 0x01, cmdsize = 260
  16. LC_SEGMENT
  17. cmd = 0x01
  18. cmdsize = 0x104
  19. segname = ''
  20. vmaddr = 0x00
  21. vmsize = 0x58
  22. fileoff = 0x188
  23. filesize = 0x53
  24. maxprot = 0x07
  25. initprot = 0x07
  26. nsects = 0x03
  27. flags = 0x00
  28. cmd = 0x02, cmdsize = 24
  29. LC_SYMTAB
  30. cmd = 0x02
  31. cmdsize = 0x18
  32. symoff = 0x1f4
  33. nsyms = 4
  34. stroff = 0x224
  35. strsize = 0x2c
  36. cmd = 0x0b, cmdsize = 80
  37. LC_DYSYMTAB
  38. cmd = 0x0b
  39. cmdsize = 0x50
  40. ilocalsym = 0
  41. nlocalsym = 1
  42. iextdefsym = 1
  43. nextdefsym = 2
  44. iundefsym = 3
  45. nundefsym = 1
  46. tocoff = 0x00
  47. ntoc = 0
  48. modtaboff = 0x00
  49. nmodtab = 0
  50. extrefsymoff = 0x00
  51. nextrefsyms = 0
  52. indirectsymoff = 0x00
  53. nindirectsyms = 0
  54. extreloff = 0x00
  55. nextrel = 0
  56. locreloff = 0x00
  57. nlocrel = 0
  58.  
  59. String Table
  60. ------------
  61. 0000: 0 5f 6d 61 69 6e 0 5f 66 6f 6f 0 5f 5f 74 6c ._main._foo.__tl
  62. 0010: 76 5f 62 6f 6f 74 73 74 72 61 70 0 5f 66 6f 6f v_bootstrap._foo
  63. 0020: 24 74 6c 76 24 69 6e 69 74 0 0 0 $tlv$init...
  64.  
  65. Symbol Table
  66. ------------
  67. [ i] type sect desc value name
  68. [ 0] x0e 2 x00 x00000054 _foo$tlv$init N_SECT
  69. [ 1] x0f 3 x00 x00000047 _foo N_EXT N_SECT
  70. [ 2] x0f 1 x00 x00000000 _main N_EXT N_SECT
  71. [ 3] x01 0 x00 x00000000 __tlv_bootstrap N_EXT N_UNDF
  72.  
  73.  
  74. Segment Table
  75. ------------
  76. vmaddr vmsize fileoff filesize maxprot initprot nsects flags segname
  77. 0x0000 0x58 0x188 0x53 0x07 0x07 0x03 0x00 ''
  78. 0000: 55 89 e5 56 83 ec 14 e8 0 0 0 0 58 8b 4d c U..V........X.M.
  79. 0010: 8b 55 8 be 0 0 0 0 c7 45 f8 0 0 0 0 89 .U.......E......
  80. 0020: 55 f4 89 4d f0 8b 80 1f 0 0 0 89 75 e8 ff 10 U..M........u...
  81. 0030: c7 0 3 0 0 0 b8 3 0 0 0 89 45 ec 8b 45 ............E..E
  82. 0040: e8 83 c4 14 5e 5d c3 0 0 0 0 0 0 0 0 54 ....^].........T
  83. 0050: 0 0 0 ...
  84.  
  85. [i] addr size offset align reloff nreloc flags res1 res2 sectname segname
  86. [1] 00000 0047 000188 4 01dc 1 80000400 00 00 __text __TEXT
  87. S_REGULAR S_ATTR_PURE_INSTRUCTIONS S_ATTR_SOME_INSTRUCTIONS
  88. [2] 00054 0004 000000 2 0000 0 00000012 00 00 __thread_bss __DATA
  89. S_02
  90. [3] 00047 000c 0001cf 0 01e4 2 00000013 00 00 __thread_vars __DATA
  91. S_03
  92.  
  93.  
  94. Segment Contents
  95. ------------
  96. [1] 00000 0047 000188 4 01dc 1 80000400 00 00 __text __TEXT
  97. 0000: 55 89 e5 56 83 ec 14 e8 0 0 0 0 58 8b 4d c U..V........X.M.
  98. 0010: 8b 55 8 be 0 0 0 0 c7 45 f8 0 0 0 0 89 .U.......E......
  99. 0020: 55 f4 89 4d f0 8b 80 1f 0 0 0 89 75 e8 ff 10 U..M........u...
  100. 0030: c7 0 3 0 0 0 b8 3 0 0 0 89 45 ec 8b 45 ............E..E
  101. 0040: e8 83 c4 14 5e 5d c3 ....^].
  102. [0] address x0027 symbolnum 1 pcrel 1 length 2 extern 1 type 5 GENERIC_RELOC_5
  103. [2] 00054 0004 000000 2 0000 0 00000012 00 00 __thread_bss __DATA
  104. [3] 00047 000c 0001cf 0 01e4 2 00000013 00 00 __thread_vars __DATA
  105. 0000: 0 0 0 0 0 0 0 0 54 0 0 0 ........T...
  106. [0] address x0008 section 2 pcrel 0 length 2 extern 0 type 0 RELOC_VANILLA
  107. [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