hello_world.elfheader 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532
  1. elf header:
  2. EI_MAG = b'\x7fELF'
  3. EI_CLASS = 0x2
  4. EI_DATA = 0x1
  5. EI_VERSION = 0x1
  6. EI_OSABI = 0x0
  7. EI_ABIVERSION = 0x0
  8. EI_PAD = b'\x00\x00\x00\x00\x00\x00\x00'
  9. e_type = 0x3
  10. e_machine = 0xf3
  11. e_version = 0x1
  12. e_entry = 0x5b0
  13. e_phoff = 0x40
  14. e_shoff = 0x1ec0
  15. e_flags = 0x5
  16. e_ehsize = 0x40
  17. e_phentsize = 0x38
  18. e_phnum = 0xa
  19. e_shentsize = 0x40
  20. e_shnum = 0x23
  21. e_shstrndx = 0x22
  22. Program Header:
  23. p_type = 0x6
  24. p_flags = 0x4
  25. p_offset = 0x40
  26. p_vaddr = 0x40
  27. p_paddr = 0x40
  28. p_filesz = 0x230
  29. p_memsz = 0x230
  30. p_align = 0x8
  31. Program Header:
  32. p_type = 0x3
  33. p_flags = 0x4
  34. p_offset = 0x270
  35. p_vaddr = 0x270
  36. p_paddr = 0x270
  37. p_filesz = 0x21
  38. p_memsz = 0x21
  39. p_align = 0x1
  40. Program Header:
  41. p_type = 0x70000003
  42. p_flags = 0x4
  43. p_offset = 0x1074
  44. p_vaddr = 0x0
  45. p_paddr = 0x0
  46. p_filesz = 0x4a
  47. p_memsz = 0x0
  48. p_align = 0x1
  49. Program Header:
  50. p_type = 0x1
  51. p_flags = 0x5
  52. p_offset = 0x0
  53. p_vaddr = 0x0
  54. p_paddr = 0x0
  55. p_filesz = 0x6fc
  56. p_memsz = 0x6fc
  57. p_align = 0x1000
  58. Program Header:
  59. p_type = 0x1
  60. p_flags = 0x6
  61. p_offset = 0xe08
  62. p_vaddr = 0x1e08
  63. p_paddr = 0x1e08
  64. p_filesz = 0x248
  65. p_memsz = 0x250
  66. p_align = 0x1000
  67. Program Header:
  68. p_type = 0x2
  69. p_flags = 0x6
  70. p_offset = 0xe20
  71. p_vaddr = 0x1e20
  72. p_paddr = 0x1e20
  73. p_filesz = 0x1e0
  74. p_memsz = 0x1e0
  75. p_align = 0x8
  76. Program Header:
  77. p_type = 0x4
  78. p_flags = 0x4
  79. p_offset = 0x294
  80. p_vaddr = 0x294
  81. p_paddr = 0x294
  82. p_filesz = 0x44
  83. p_memsz = 0x44
  84. p_align = 0x4
  85. Program Header:
  86. p_type = 0x6474e550
  87. p_flags = 0x4
  88. p_offset = 0x6bc
  89. p_vaddr = 0x6bc
  90. p_paddr = 0x6bc
  91. p_filesz = 0x14
  92. p_memsz = 0x14
  93. p_align = 0x4
  94. Program Header:
  95. p_type = 0x6474e551
  96. p_flags = 0x6
  97. p_offset = 0x0
  98. p_vaddr = 0x0
  99. p_paddr = 0x0
  100. p_filesz = 0x0
  101. p_memsz = 0x0
  102. p_align = 0x10
  103. Program Header:
  104. p_type = 0x6474e552
  105. p_flags = 0x4
  106. p_offset = 0xe08
  107. p_vaddr = 0x1e08
  108. p_paddr = 0x1e08
  109. p_filesz = 0x1f8
  110. p_memsz = 0x1f8
  111. p_align = 0x1
  112. Section Header 0:
  113. sh_name = 0x0
  114. sh_type = 0x0
  115. sh_flags = 0x0
  116. sh_addr = 0x0
  117. sh_offset = 0x0
  118. sh_size = 0x0
  119. sh_link = 0x0
  120. sh_info = 0x0
  121. sh_addralign = 0x0
  122. sh_entsize = 0x0
  123. name_text =
  124. Section Header 1:
  125. sh_name = 0x1b
  126. sh_type = 0x1
  127. sh_flags = 0x2
  128. sh_addr = 0x270
  129. sh_offset = 0x270
  130. sh_size = 0x21
  131. sh_link = 0x0
  132. sh_info = 0x0
  133. sh_addralign = 0x1
  134. sh_entsize = 0x0
  135. name_text = .interp
  136. Section Header 2:
  137. sh_name = 0x23
  138. sh_type = 0x7
  139. sh_flags = 0x2
  140. sh_addr = 0x294
  141. sh_offset = 0x294
  142. sh_size = 0x24
  143. sh_link = 0x0
  144. sh_info = 0x0
  145. sh_addralign = 0x4
  146. sh_entsize = 0x0
  147. name_text = .note.gnu.build-id
  148. Section Header 3:
  149. sh_name = 0x36
  150. sh_type = 0x7
  151. sh_flags = 0x2
  152. sh_addr = 0x2b8
  153. sh_offset = 0x2b8
  154. sh_size = 0x20
  155. sh_link = 0x0
  156. sh_info = 0x0
  157. sh_addralign = 0x4
  158. sh_entsize = 0x0
  159. name_text = .note.ABI-tag
  160. Section Header 4:
  161. sh_name = 0x44
  162. sh_type = 0x6ffffff6
  163. sh_flags = 0x2
  164. sh_addr = 0x2d8
  165. sh_offset = 0x2d8
  166. sh_size = 0x24
  167. sh_link = 0x5
  168. sh_info = 0x0
  169. sh_addralign = 0x8
  170. sh_entsize = 0x0
  171. name_text = .gnu.hash
  172. Section Header 5:
  173. sh_name = 0x4e
  174. sh_type = 0xb
  175. sh_flags = 0x2
  176. sh_addr = 0x300
  177. sh_offset = 0x300
  178. sh_size = 0xc0
  179. sh_link = 0x6
  180. sh_info = 0x2
  181. sh_addralign = 0x8
  182. sh_entsize = 0x18
  183. name_text = .dynsym
  184. Section Header 6:
  185. sh_name = 0x56
  186. sh_type = 0x3
  187. sh_flags = 0x2
  188. sh_addr = 0x3c0
  189. sh_offset = 0x3c0
  190. sh_size = 0x7f
  191. sh_link = 0x0
  192. sh_info = 0x0
  193. sh_addralign = 0x1
  194. sh_entsize = 0x0
  195. name_text = .dynstr
  196. Section Header 7:
  197. sh_name = 0x5e
  198. sh_type = 0x6fffffff
  199. sh_flags = 0x2
  200. sh_addr = 0x440
  201. sh_offset = 0x440
  202. sh_size = 0x10
  203. sh_link = 0x5
  204. sh_info = 0x0
  205. sh_addralign = 0x2
  206. sh_entsize = 0x2
  207. name_text = .gnu.version
  208. Section Header 8:
  209. sh_name = 0x6b
  210. sh_type = 0x6ffffffe
  211. sh_flags = 0x2
  212. sh_addr = 0x450
  213. sh_offset = 0x450
  214. sh_size = 0x30
  215. sh_link = 0x6
  216. sh_info = 0x1
  217. sh_addralign = 0x8
  218. sh_entsize = 0x0
  219. name_text = .gnu.version_r
  220. Section Header 9:
  221. sh_name = 0x7a
  222. sh_type = 0x4
  223. sh_flags = 0x2
  224. sh_addr = 0x480
  225. sh_offset = 0x480
  226. sh_size = 0xc0
  227. sh_link = 0x5
  228. sh_info = 0x0
  229. sh_addralign = 0x8
  230. sh_entsize = 0x18
  231. name_text = .rela.dyn
  232. Section Header 10:
  233. sh_name = 0x84
  234. sh_type = 0x4
  235. sh_flags = 0x42
  236. sh_addr = 0x540
  237. sh_offset = 0x540
  238. sh_size = 0x30
  239. sh_link = 0x5
  240. sh_info = 0x15
  241. sh_addralign = 0x8
  242. sh_entsize = 0x18
  243. name_text = .rela.plt
  244. Section Header 11:
  245. sh_name = 0x89
  246. sh_type = 0x1
  247. sh_flags = 0x6
  248. sh_addr = 0x570
  249. sh_offset = 0x570
  250. sh_size = 0x40
  251. sh_link = 0x0
  252. sh_info = 0x0
  253. sh_addralign = 0x10
  254. sh_entsize = 0x10
  255. name_text = .plt
  256. Section Header 12:
  257. sh_name = 0x8e
  258. sh_type = 0x1
  259. sh_flags = 0x6
  260. sh_addr = 0x5b0
  261. sh_offset = 0x5b0
  262. sh_size = 0xea
  263. sh_link = 0x0
  264. sh_info = 0x0
  265. sh_addralign = 0x4
  266. sh_entsize = 0x0
  267. name_text = .text
  268. Section Header 13:
  269. sh_name = 0x94
  270. sh_type = 0x1
  271. sh_flags = 0x2
  272. sh_addr = 0x6a0
  273. sh_offset = 0x6a0
  274. sh_size = 0x1a
  275. sh_link = 0x0
  276. sh_info = 0x0
  277. sh_addralign = 0x8
  278. sh_entsize = 0x0
  279. name_text = .rodata
  280. Section Header 14:
  281. sh_name = 0x9c
  282. sh_type = 0x1
  283. sh_flags = 0x2
  284. sh_addr = 0x6bc
  285. sh_offset = 0x6bc
  286. sh_size = 0x14
  287. sh_link = 0x0
  288. sh_info = 0x0
  289. sh_addralign = 0x4
  290. sh_entsize = 0x0
  291. name_text = .eh_frame_hdr
  292. Section Header 15:
  293. sh_name = 0xaa
  294. sh_type = 0x1
  295. sh_flags = 0x2
  296. sh_addr = 0x6d0
  297. sh_offset = 0x6d0
  298. sh_size = 0x2c
  299. sh_link = 0x0
  300. sh_info = 0x0
  301. sh_addralign = 0x8
  302. sh_entsize = 0x0
  303. name_text = .eh_frame
  304. Section Header 16:
  305. sh_name = 0xb4
  306. sh_type = 0x10
  307. sh_flags = 0x3
  308. sh_addr = 0x1e08
  309. sh_offset = 0xe08
  310. sh_size = 0x8
  311. sh_link = 0x0
  312. sh_info = 0x0
  313. sh_addralign = 0x1
  314. sh_entsize = 0x8
  315. name_text = .preinit_array
  316. Section Header 17:
  317. sh_name = 0xc3
  318. sh_type = 0xe
  319. sh_flags = 0x3
  320. sh_addr = 0x1e10
  321. sh_offset = 0xe10
  322. sh_size = 0x8
  323. sh_link = 0x0
  324. sh_info = 0x0
  325. sh_addralign = 0x8
  326. sh_entsize = 0x8
  327. name_text = .init_array
  328. Section Header 18:
  329. sh_name = 0xcf
  330. sh_type = 0xf
  331. sh_flags = 0x3
  332. sh_addr = 0x1e18
  333. sh_offset = 0xe18
  334. sh_size = 0x8
  335. sh_link = 0x0
  336. sh_info = 0x0
  337. sh_addralign = 0x8
  338. sh_entsize = 0x8
  339. name_text = .fini_array
  340. Section Header 19:
  341. sh_name = 0xdb
  342. sh_type = 0x6
  343. sh_flags = 0x3
  344. sh_addr = 0x1e20
  345. sh_offset = 0xe20
  346. sh_size = 0x1e0
  347. sh_link = 0x6
  348. sh_info = 0x0
  349. sh_addralign = 0x8
  350. sh_entsize = 0x10
  351. name_text = .dynamic
  352. Section Header 20:
  353. sh_name = 0xe4
  354. sh_type = 0x1
  355. sh_flags = 0x3
  356. sh_addr = 0x2000
  357. sh_offset = 0x1000
  358. sh_size = 0x8
  359. sh_link = 0x0
  360. sh_info = 0x0
  361. sh_addralign = 0x8
  362. sh_entsize = 0x0
  363. name_text = .data
  364. Section Header 21:
  365. sh_name = 0xea
  366. sh_type = 0x1
  367. sh_flags = 0x3
  368. sh_addr = 0x2008
  369. sh_offset = 0x1008
  370. sh_size = 0x48
  371. sh_link = 0x0
  372. sh_info = 0x0
  373. sh_addralign = 0x8
  374. sh_entsize = 0x8
  375. name_text = .got
  376. Section Header 22:
  377. sh_name = 0xef
  378. sh_type = 0x8
  379. sh_flags = 0x3
  380. sh_addr = 0x2050
  381. sh_offset = 0x1050
  382. sh_size = 0x8
  383. sh_link = 0x0
  384. sh_info = 0x0
  385. sh_addralign = 0x1
  386. sh_entsize = 0x0
  387. name_text = .bss
  388. Section Header 23:
  389. sh_name = 0xf4
  390. sh_type = 0x1
  391. sh_flags = 0x30
  392. sh_addr = 0x0
  393. sh_offset = 0x1050
  394. sh_size = 0x24
  395. sh_link = 0x0
  396. sh_info = 0x0
  397. sh_addralign = 0x1
  398. sh_entsize = 0x1
  399. name_text = .comment
  400. Section Header 24:
  401. sh_name = 0xfd
  402. sh_type = 0x70000003
  403. sh_flags = 0x0
  404. sh_addr = 0x0
  405. sh_offset = 0x1074
  406. sh_size = 0x4a
  407. sh_link = 0x0
  408. sh_info = 0x0
  409. sh_addralign = 0x1
  410. sh_entsize = 0x0
  411. name_text = .riscv.attributes
  412. Section Header 25:
  413. sh_name = 0x10f
  414. sh_type = 0x1
  415. sh_flags = 0x0
  416. sh_addr = 0x0
  417. sh_offset = 0x10be
  418. sh_size = 0x30
  419. sh_link = 0x0
  420. sh_info = 0x0
  421. sh_addralign = 0x1
  422. sh_entsize = 0x0
  423. name_text = .debug_aranges
  424. Section Header 26:
  425. sh_name = 0x11e
  426. sh_type = 0x1
  427. sh_flags = 0x0
  428. sh_addr = 0x0
  429. sh_offset = 0x10ee
  430. sh_size = 0xd7
  431. sh_link = 0x0
  432. sh_info = 0x0
  433. sh_addralign = 0x1
  434. sh_entsize = 0x0
  435. name_text = .debug_info
  436. Section Header 27:
  437. sh_name = 0x12a
  438. sh_type = 0x1
  439. sh_flags = 0x0
  440. sh_addr = 0x0
  441. sh_offset = 0x11c5
  442. sh_size = 0x8e
  443. sh_link = 0x0
  444. sh_info = 0x0
  445. sh_addralign = 0x1
  446. sh_entsize = 0x0
  447. name_text = .debug_abbrev
  448. Section Header 28:
  449. sh_name = 0x138
  450. sh_type = 0x1
  451. sh_flags = 0x0
  452. sh_addr = 0x0
  453. sh_offset = 0x1253
  454. sh_size = 0x6b
  455. sh_link = 0x0
  456. sh_info = 0x0
  457. sh_addralign = 0x1
  458. sh_entsize = 0x0
  459. name_text = .debug_line
  460. Section Header 29:
  461. sh_name = 0x144
  462. sh_type = 0x1
  463. sh_flags = 0x0
  464. sh_addr = 0x0
  465. sh_offset = 0x12c0
  466. sh_size = 0x40
  467. sh_link = 0x0
  468. sh_info = 0x0
  469. sh_addralign = 0x8
  470. sh_entsize = 0x0
  471. name_text = .debug_frame
  472. Section Header 30:
  473. sh_name = 0x151
  474. sh_type = 0x1
  475. sh_flags = 0x30
  476. sh_addr = 0x0
  477. sh_offset = 0x1300
  478. sh_size = 0xaf
  479. sh_link = 0x0
  480. sh_info = 0x0
  481. sh_addralign = 0x1
  482. sh_entsize = 0x1
  483. name_text = .debug_str
  484. Section Header 31:
  485. sh_name = 0x15c
  486. sh_type = 0x1
  487. sh_flags = 0x30
  488. sh_addr = 0x0
  489. sh_offset = 0x13af
  490. sh_size = 0x5f
  491. sh_link = 0x0
  492. sh_info = 0x0
  493. sh_addralign = 0x1
  494. sh_entsize = 0x1
  495. name_text = .debug_line_str
  496. Section Header 32:
  497. sh_name = 0x1
  498. sh_type = 0x2
  499. sh_flags = 0x0
  500. sh_addr = 0x0
  501. sh_offset = 0x1410
  502. sh_size = 0x708
  503. sh_link = 0x21
  504. sh_info = 0x38
  505. sh_addralign = 0x8
  506. sh_entsize = 0x18
  507. name_text = .symtab
  508. Section Header 33:
  509. sh_name = 0x9
  510. sh_type = 0x3
  511. sh_flags = 0x0
  512. sh_addr = 0x0
  513. sh_offset = 0x1b18
  514. sh_size = 0x23b
  515. sh_link = 0x0
  516. sh_info = 0x0
  517. sh_addralign = 0x1
  518. sh_entsize = 0x0
  519. name_text = .strtab
  520. Section Header 34:
  521. sh_name = 0x11
  522. sh_type = 0x3
  523. sh_flags = 0x0
  524. sh_addr = 0x0
  525. sh_offset = 0x1d53
  526. sh_size = 0x16c
  527. sh_link = 0x0
  528. sh_info = 0x0
  529. sh_addralign = 0x1
  530. sh_entsize = 0x0
  531. name_text = .shstrtab