Advertisement
sp0re

Untitled

Mar 18th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.62 KB | None | 0 0
  1. $ readelf -a test
  2. ELF Header:
  3. Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
  4. Class: ELF64
  5. Data: 2's complement, little endian
  6. Version: 1 (current)
  7. OS/ABI: UNIX - System V
  8. ABI Version: 0
  9. Type: EXEC (Executable file)
  10. Machine: Advanced Micro Devices X86-64
  11. Version: 0x1
  12. Entry point address: 0x401020
  13. Start of program headers: 64 (bytes into file)
  14. Start of section headers: 15152 (bytes into file)
  15. Flags: 0x0
  16. Size of this header: 64 (bytes)
  17. Size of program headers: 56 (bytes)
  18. Number of program headers: 11
  19. Size of section headers: 64 (bytes)
  20. Number of section headers: 26
  21. Section header string table index: 25
  22.  
  23. Section Headers:
  24. [Nr] Name Type Address Offset
  25. Size EntSize Flags Link Info Align
  26. [ 0] NULL 0000000000000000 00000000
  27. 0000000000000000 0000000000000000 0 0 0
  28. [ 1] .interp PROGBITS 00000000004002a8 000002a8
  29. 000000000000001c 0000000000000000 A 0 0 1
  30. [ 2] .note.ABI-tag NOTE 00000000004002c4 000002c4
  31. 0000000000000020 0000000000000000 A 0 0 4
  32. [ 3] .note.gnu.build-i NOTE 00000000004002e4 000002e4
  33. 0000000000000024 0000000000000000 A 0 0 4
  34. [ 4] .gnu.hash GNU_HASH 0000000000400308 00000308
  35. 000000000000001c 0000000000000000 A 5 0 8
  36. [ 5] .dynsym DYNSYM 0000000000400328 00000328
  37. 0000000000000078 0000000000000018 A 6 1 8
  38. [ 6] .dynstr STRTAB 00000000004003a0 000003a0
  39. 000000000000006e 0000000000000000 A 0 0 1
  40. [ 7] .gnu.version VERSYM 000000000040040e 0000040e
  41. 000000000000000a 0000000000000002 A 5 0 2
  42. [ 8] .gnu.version_r VERNEED 0000000000400418 00000418
  43. 0000000000000020 0000000000000000 A 6 1 8
  44. [ 9] .rela.dyn RELA 0000000000400438 00000438
  45. 0000000000000060 0000000000000018 A 5 0 8
  46. [10] .init PROGBITS 0000000000401000 00001000
  47. 000000000000001b 0000000000000000 AX 0 0 4
  48. [11] .text PROGBITS 0000000000401020 00001020
  49. 0000000000000205 0000000000000000 AX 0 0 16
  50. [12] .fini PROGBITS 0000000000401228 00001228
  51. 000000000000000d 0000000000000000 AX 0 0 4
  52. [13] .rodata PROGBITS 0000000000402000 00002000
  53. 0000000000000004 0000000000000004 AM 0 0 4
  54. [14] .eh_frame_hdr PROGBITS 0000000000402004 00002004
  55. 000000000000002c 0000000000000000 A 0 0 4
  56. [15] .eh_frame PROGBITS 0000000000402030 00002030
  57. 00000000000000a0 0000000000000000 A 0 0 8
  58. [16] .init_array INIT_ARRAY 0000000000403e08 00002e08
  59. 0000000000000008 0000000000000008 WA 0 0 8
  60. [17] .fini_array FINI_ARRAY 0000000000403e10 00002e10
  61. 0000000000000008 0000000000000008 WA 0 0 8
  62. [18] .dynamic DYNAMIC 0000000000403e18 00002e18
  63. 00000000000001b0 0000000000000010 WA 6 0 8
  64. [19] .got PROGBITS 0000000000403fc8 00002fc8
  65. 0000000000000038 0000000000000008 WA 0 0 8
  66. [20] .data PROGBITS 0000000000404000 00003000
  67. 0000000000000010 0000000000000000 WA 0 0 8
  68. [21] .bss NOBITS 0000000000404010 00003010
  69. 0000000000000008 0000000000000000 WA 0 0 1
  70. [22] .comment PROGBITS 0000000000000000 00003010
  71. 0000000000000034 0000000000000001 MS 0 0 1
  72. [23] .symtab SYMTAB 0000000000000000 00003048
  73. 0000000000000720 0000000000000018 24 57 8
  74. [24] .strtab STRTAB 0000000000000000 00003768
  75. 00000000000002d2 0000000000000000 0 0 1
  76. [25] .shstrtab STRTAB 0000000000000000 00003a3a
  77. 00000000000000f0 0000000000000000 0 0 1
  78. Key to Flags:
  79. W (write), A (alloc), X (execute), M (merge), S (strings), I (info),
  80. L (link order), O (extra OS processing required), G (group), T (TLS),
  81. C (compressed), x (unknown), o (OS specific), E (exclude),
  82. l (large), p (processor specific)
  83.  
  84. There are no section groups in this file.
  85.  
  86. Program Headers:
  87. Type Offset VirtAddr PhysAddr
  88. FileSiz MemSiz Flags Align
  89. PHDR 0x0000000000000040 0x0000000000400040 0x0000000000400040
  90. 0x0000000000000268 0x0000000000000268 R 0x8
  91. INTERP 0x00000000000002a8 0x00000000004002a8 0x00000000004002a8
  92. 0x000000000000001c 0x000000000000001c R 0x1
  93. [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
  94. LOAD 0x0000000000000000 0x0000000000400000 0x0000000000400000
  95. 0x0000000000000498 0x0000000000000498 R 0x1000
  96. LOAD 0x0000000000001000 0x0000000000401000 0x0000000000401000
  97. 0x0000000000000235 0x0000000000000235 R E 0x1000
  98. LOAD 0x0000000000002000 0x0000000000402000 0x0000000000402000
  99. 0x00000000000000d0 0x00000000000000d0 R 0x1000
  100. LOAD 0x0000000000002e08 0x0000000000403e08 0x0000000000403e08
  101. 0x0000000000000208 0x0000000000000210 RW 0x1000
  102. DYNAMIC 0x0000000000002e18 0x0000000000403e18 0x0000000000403e18
  103. 0x00000000000001b0 0x00000000000001b0 RW 0x8
  104. NOTE 0x00000000000002c4 0x00000000004002c4 0x00000000004002c4
  105. 0x0000000000000044 0x0000000000000044 R 0x4
  106. GNU_EH_FRAME 0x0000000000002004 0x0000000000402004 0x0000000000402004
  107. 0x000000000000002c 0x000000000000002c R 0x4
  108. GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000
  109. 0x0000000000000000 0x0000000000000000 RWE 0x10
  110. GNU_RELRO 0x0000000000002e08 0x0000000000403e08 0x0000000000403e08
  111. 0x00000000000001f8 0x00000000000001f8 R 0x1
  112.  
  113. Section to Segment mapping:
  114. Segment Sections...
  115. 00
  116. 01 .interp
  117. 02 .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn
  118. 03 .init .text .fini
  119. 04 .rodata .eh_frame_hdr .eh_frame
  120. 05 .init_array .fini_array .dynamic .got .data .bss
  121. 06 .dynamic
  122. 07 .note.ABI-tag .note.gnu.build-id
  123. 08 .eh_frame_hdr
  124. 09
  125. 10 .init_array .fini_array .dynamic .got
  126.  
  127. Dynamic section at offset 0x2e18 contains 22 entries:
  128. Tag Type Name/Value
  129. 0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
  130. 0x000000000000000c (INIT) 0x401000
  131. 0x000000000000000d (FINI) 0x401228
  132. 0x0000000000000019 (INIT_ARRAY) 0x403e08
  133. 0x000000000000001b (INIT_ARRAYSZ) 8 (bytes)
  134. 0x000000000000001a (FINI_ARRAY) 0x403e10
  135. 0x000000000000001c (FINI_ARRAYSZ) 8 (bytes)
  136. 0x000000006ffffef5 (GNU_HASH) 0x400308
  137. 0x0000000000000005 (STRTAB) 0x4003a0
  138. 0x0000000000000006 (SYMTAB) 0x400328
  139. 0x000000000000000a (STRSZ) 110 (bytes)
  140. 0x000000000000000b (SYMENT) 24 (bytes)
  141. 0x0000000000000015 (DEBUG) 0x0
  142. 0x0000000000000007 (RELA) 0x400438
  143. 0x0000000000000008 (RELASZ) 96 (bytes)
  144. 0x0000000000000009 (RELAENT) 24 (bytes)
  145. 0x0000000000000018 (BIND_NOW)
  146. 0x000000006ffffffb (FLAGS_1) Flags: NOW
  147. 0x000000006ffffffe (VERNEED) 0x400418
  148. 0x000000006fffffff (VERNEEDNUM) 1
  149. 0x000000006ffffff0 (VERSYM) 0x40040e
  150. 0x0000000000000000 (NULL) 0x0
  151.  
  152. Relocation section '.rela.dyn' at offset 0x438 contains 4 entries:
  153. Offset Info Type Sym. Value Sym. Name + Addend
  154. 000000403fe0 000100000006 R_X86_64_GLOB_DAT 0000000000000000 _ITM_deregisterTMClone + 0
  155. 000000403fe8 000200000006 R_X86_64_GLOB_DAT 0000000000000000 __libc_start_main@GLIBC_2.2.5 + 0
  156. 000000403ff0 000300000006 R_X86_64_GLOB_DAT 0000000000000000 __gmon_start__ + 0
  157. 000000403ff8 000400000006 R_X86_64_GLOB_DAT 0000000000000000 _ITM_registerTMCloneTa + 0
  158.  
  159. The decoding of unwind sections for machine type Advanced Micro Devices X86-64 is not currently supported.
  160.  
  161. Symbol table '.dynsym' contains 5 entries:
  162. Num: Value Size Type Bind Vis Ndx Name
  163. 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
  164. 1: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTab
  165. 2: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.2.5 (2)
  166. 3: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__
  167. 4: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable
  168.  
  169. Symbol table '.symtab' contains 76 entries:
  170. Num: Value Size Type Bind Vis Ndx Name
  171. 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
  172. 1: 00000000004002a8 0 SECTION LOCAL DEFAULT 1
  173. 2: 00000000004002c4 0 SECTION LOCAL DEFAULT 2
  174. 3: 00000000004002e4 0 SECTION LOCAL DEFAULT 3
  175. 4: 0000000000400308 0 SECTION LOCAL DEFAULT 4
  176. 5: 0000000000400328 0 SECTION LOCAL DEFAULT 5
  177. 6: 00000000004003a0 0 SECTION LOCAL DEFAULT 6
  178. 7: 000000000040040e 0 SECTION LOCAL DEFAULT 7
  179. 8: 0000000000400418 0 SECTION LOCAL DEFAULT 8
  180. 9: 0000000000400438 0 SECTION LOCAL DEFAULT 9
  181. 10: 0000000000401000 0 SECTION LOCAL DEFAULT 10
  182. 11: 0000000000401020 0 SECTION LOCAL DEFAULT 11
  183. 12: 0000000000401228 0 SECTION LOCAL DEFAULT 12
  184. 13: 0000000000402000 0 SECTION LOCAL DEFAULT 13
  185. 14: 0000000000402004 0 SECTION LOCAL DEFAULT 14
  186. 15: 0000000000402030 0 SECTION LOCAL DEFAULT 15
  187. 16: 0000000000403e08 0 SECTION LOCAL DEFAULT 16
  188. 17: 0000000000403e10 0 SECTION LOCAL DEFAULT 17
  189. 18: 0000000000403e18 0 SECTION LOCAL DEFAULT 18
  190. 19: 0000000000403fc8 0 SECTION LOCAL DEFAULT 19
  191. 20: 0000000000404000 0 SECTION LOCAL DEFAULT 20
  192. 21: 0000000000404010 0 SECTION LOCAL DEFAULT 21
  193. 22: 0000000000000000 0 SECTION LOCAL DEFAULT 22
  194. 23: 0000000000000000 0 FILE LOCAL DEFAULT ABS init.c
  195. 24: 0000000000000000 0 FILE LOCAL DEFAULT ABS static-reloc.c
  196. 25: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c
  197. 26: 0000000000401060 0 FUNC LOCAL DEFAULT 11 deregister_tm_clones
  198. 27: 0000000000401090 0 FUNC LOCAL DEFAULT 11 register_tm_clones
  199. 28: 00000000004010d0 0 FUNC LOCAL DEFAULT 11 __do_global_dtors_aux
  200. 29: 0000000000404010 1 OBJECT LOCAL DEFAULT 21 completed.7287
  201. 30: 0000000000403e10 0 OBJECT LOCAL DEFAULT 17 __do_global_dtors_aux_fin
  202. 31: 0000000000401100 0 FUNC LOCAL DEFAULT 11 frame_dummy
  203. 32: 0000000000403e08 0 OBJECT LOCAL DEFAULT 16 __frame_dummy_init_array_
  204. 33: 0000000000000000 0 FILE LOCAL DEFAULT ABS /tmp/cckw76XP.o
  205. 34: 000000000040111a 0 NOTYPE LOCAL DEFAULT 11 find_base
  206. 35: 0000000000401127 0 NOTYPE LOCAL DEFAULT 11 found_base
  207. 36: 000000000040112c 0 NOTYPE LOCAL DEFAULT 11 startup
  208. 37: 0000000000401129 0 NOTYPE LOCAL DEFAULT 11 __initialize_world
  209. 38: 0000000000401184 0 NOTYPE LOCAL DEFAULT 11 _world
  210. 39: 0000000000401131 0 NOTYPE LOCAL DEFAULT 11 find_function
  211. 40: 000000000040113b 0 NOTYPE LOCAL DEFAULT 11 read_dynamic_section
  212. 41: 0000000000401144 0 NOTYPE LOCAL DEFAULT 11 check_dynamic_type
  213. 42: 000000000040114d 0 NOTYPE LOCAL DEFAULT 11 string_table_found
  214. 43: 0000000000401155 0 NOTYPE LOCAL DEFAULT 11 check_next_hash
  215. 44: 0000000000401161 0 NOTYPE LOCAL DEFAULT 11 calc_hash
  216. 45: 0000000000401163 0 NOTYPE LOCAL DEFAULT 11 initialize_regs
  217. 46: 0000000000401166 0 NOTYPE LOCAL DEFAULT 11 calc_hash_loop
  218. 47: 0000000000401170 0 NOTYPE LOCAL DEFAULT 11 calc_done
  219. 48: 0000000000401178 0 NOTYPE LOCAL DEFAULT 11 found_hash
  220. 49: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c
  221. 50: 00000000004020cc 0 OBJECT LOCAL DEFAULT 15 __FRAME_END__
  222. 51: 0000000000000000 0 FILE LOCAL DEFAULT ABS
  223. 52: 0000000000403e10 0 NOTYPE LOCAL DEFAULT 16 __init_array_end
  224. 53: 0000000000403e18 0 OBJECT LOCAL DEFAULT 18 _DYNAMIC
  225. 54: 0000000000403e08 0 NOTYPE LOCAL DEFAULT 16 __init_array_start
  226. 55: 0000000000402004 0 NOTYPE LOCAL DEFAULT 14 __GNU_EH_FRAME_HDR
  227. 56: 0000000000403fc8 0 OBJECT LOCAL DEFAULT 19 _GLOBAL_OFFSET_TABLE_
  228. 57: 0000000000401220 5 FUNC GLOBAL DEFAULT 11 __libc_csu_fini
  229. 58: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTab
  230. 59: 0000000000404000 0 NOTYPE WEAK DEFAULT 20 data_start
  231. 60: 0000000000404010 0 NOTYPE GLOBAL DEFAULT 20 _edata
  232. 61: 0000000000401228 0 FUNC GLOBAL HIDDEN 12 _fini
  233. 62: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@@GLIBC_
  234. 63: 0000000000404000 0 NOTYPE GLOBAL DEFAULT 20 __data_start
  235. 64: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__
  236. 65: 0000000000404008 0 OBJECT GLOBAL HIDDEN 20 __dso_handle
  237. 66: 0000000000402000 4 OBJECT GLOBAL DEFAULT 13 _IO_stdin_used
  238. 67: 00000000004011b0 101 FUNC GLOBAL DEFAULT 11 __libc_csu_init
  239. 68: 0000000000404018 0 NOTYPE GLOBAL DEFAULT 21 _end
  240. 69: 0000000000401050 5 FUNC GLOBAL HIDDEN 11 _dl_relocate_static_pie
  241. 70: 0000000000401020 47 FUNC GLOBAL DEFAULT 11 _start
  242. 71: 0000000000404010 0 NOTYPE GLOBAL DEFAULT 21 __bss_start
  243. 72: 0000000000401106 0 NOTYPE GLOBAL DEFAULT 11 main
  244. 73: 0000000000404010 0 OBJECT GLOBAL HIDDEN 20 __TMC_END__
  245. 74: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable
  246. 75: 0000000000401000 0 FUNC GLOBAL HIDDEN 10 _init
  247.  
  248. Version symbols section '.gnu.version' contains 5 entries:
  249. Addr: 000000000040040e Offset: 0x00040e Link: 5 (.dynsym)
  250. 000: 0 (*local*) 0 (*local*) 2 (GLIBC_2.2.5) 0 (*local*)
  251. 004: 0 (*local*)
  252.  
  253. Version needs section '.gnu.version_r' contains 1 entry:
  254. Addr: 0x0000000000400418 Offset: 0x000418 Link: 6 (.dynstr)
  255. 000000: Version: 1 File: libc.so.6 Cnt: 1
  256. 0x0010: Name: GLIBC_2.2.5 Flags: none Version: 2
  257.  
  258. Displaying notes found in: .note.ABI-tag
  259. Owner Data size Description
  260. GNU 0x00000010 NT_GNU_ABI_TAG (ABI version tag)
  261. OS: Linux, ABI: 3.2.0
  262.  
  263. Displaying notes found in: .note.gnu.build-id
  264. Owner Data size Description
  265. GNU 0x00000014 NT_GNU_BUILD_ID (unique build ID bitstring)
  266. Build ID: 369a3efa75ba4842e0bca0ad2a475e64950083e7
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement