riscv-none-embed-readelf.1 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696
  1. .\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35)
  2. .\"
  3. .\" Standard preamble:
  4. .\" ========================================================================
  5. .de Sp \" Vertical space (when we can't use .PP)
  6. .if t .sp .5v
  7. .if n .sp
  8. ..
  9. .de Vb \" Begin verbatim text
  10. .ft CW
  11. .nf
  12. .ne \\$1
  13. ..
  14. .de Ve \" End verbatim text
  15. .ft R
  16. .fi
  17. ..
  18. .\" Set up some character translations and predefined strings. \*(-- will
  19. .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
  20. .\" double quote, and \*(R" will give a right double quote. \*(C+ will
  21. .\" give a nicer C++. Capital omega is used to do unbreakable dashes and
  22. .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
  23. .\" nothing in troff, for use with C<>.
  24. .tr \(*W-
  25. .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
  26. .ie n \{\
  27. . ds -- \(*W-
  28. . ds PI pi
  29. . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
  30. . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
  31. . ds L" ""
  32. . ds R" ""
  33. . ds C` ""
  34. . ds C' ""
  35. 'br\}
  36. .el\{\
  37. . ds -- \|\(em\|
  38. . ds PI \(*p
  39. . ds L" ``
  40. . ds R" ''
  41. . ds C`
  42. . ds C'
  43. 'br\}
  44. .\"
  45. .\" Escape single quotes in literal strings from groff's Unicode transform.
  46. .ie \n(.g .ds Aq \(aq
  47. .el .ds Aq '
  48. .\"
  49. .\" If the F register is >0, we'll generate index entries on stderr for
  50. .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
  51. .\" entries marked with X<> in POD. Of course, you'll have to process the
  52. .\" output yourself in some meaningful fashion.
  53. .\"
  54. .\" Avoid warning from groff about undefined register 'F'.
  55. .de IX
  56. ..
  57. .nr rF 0
  58. .if \n(.g .if rF .nr rF 1
  59. .if (\n(rF:(\n(.g==0)) \{\
  60. . if \nF \{\
  61. . de IX
  62. . tm Index:\\$1\t\\n%\t"\\$2"
  63. ..
  64. . if !\nF==2 \{\
  65. . nr % 0
  66. . nr F 2
  67. . \}
  68. . \}
  69. .\}
  70. .rr rF
  71. .\"
  72. .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
  73. .\" Fear. Run. Save yourself. No user-serviceable parts.
  74. . \" fudge factors for nroff and troff
  75. .if n \{\
  76. . ds #H 0
  77. . ds #V .8m
  78. . ds #F .3m
  79. . ds #[ \f1
  80. . ds #] \fP
  81. .\}
  82. .if t \{\
  83. . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
  84. . ds #V .6m
  85. . ds #F 0
  86. . ds #[ \&
  87. . ds #] \&
  88. .\}
  89. . \" simple accents for nroff and troff
  90. .if n \{\
  91. . ds ' \&
  92. . ds ` \&
  93. . ds ^ \&
  94. . ds , \&
  95. . ds ~ ~
  96. . ds /
  97. .\}
  98. .if t \{\
  99. . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
  100. . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
  101. . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
  102. . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
  103. . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
  104. . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
  105. .\}
  106. . \" troff and (daisy-wheel) nroff accents
  107. .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
  108. .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
  109. .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
  110. .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
  111. .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
  112. .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
  113. .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
  114. .ds ae a\h'-(\w'a'u*4/10)'e
  115. .ds Ae A\h'-(\w'A'u*4/10)'E
  116. . \" corrections for vroff
  117. .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
  118. .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
  119. . \" for low resolution devices (crt and lpr)
  120. .if \n(.H>23 .if \n(.V>19 \
  121. \{\
  122. . ds : e
  123. . ds 8 ss
  124. . ds o a
  125. . ds d- d\h'-1'\(ga
  126. . ds D- D\h'-1'\(hy
  127. . ds th \o'bp'
  128. . ds Th \o'LP'
  129. . ds ae ae
  130. . ds Ae AE
  131. .\}
  132. .rm #[ #] #H #V #F C
  133. .\" ========================================================================
  134. .\"
  135. .IX Title "READELF 1"
  136. .TH READELF 1 "2020-07-03" "binutils-2.32" "GNU Development Tools"
  137. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  138. .\" way too many mistakes in technical documents.
  139. .if n .ad l
  140. .nh
  141. .SH "NAME"
  142. readelf \- Displays information about ELF files.
  143. .SH "SYNOPSIS"
  144. .IX Header "SYNOPSIS"
  145. readelf [\fB\-a\fR|\fB\-\-all\fR]
  146. [\fB\-h\fR|\fB\-\-file\-header\fR]
  147. [\fB\-l\fR|\fB\-\-program\-headers\fR|\fB\-\-segments\fR]
  148. [\fB\-S\fR|\fB\-\-section\-headers\fR|\fB\-\-sections\fR]
  149. [\fB\-g\fR|\fB\-\-section\-groups\fR]
  150. [\fB\-t\fR|\fB\-\-section\-details\fR]
  151. [\fB\-e\fR|\fB\-\-headers\fR]
  152. [\fB\-s\fR|\fB\-\-syms\fR|\fB\-\-symbols\fR]
  153. [\fB\-\-dyn\-syms\fR]
  154. [\fB\-n\fR|\fB\-\-notes\fR]
  155. [\fB\-r\fR|\fB\-\-relocs\fR]
  156. [\fB\-u\fR|\fB\-\-unwind\fR]
  157. [\fB\-d\fR|\fB\-\-dynamic\fR]
  158. [\fB\-V\fR|\fB\-\-version\-info\fR]
  159. [\fB\-A\fR|\fB\-\-arch\-specific\fR]
  160. [\fB\-D\fR|\fB\-\-use\-dynamic\fR]
  161. [\fB\-x\fR <number or name>|\fB\-\-hex\-dump=\fR<number or name>]
  162. [\fB\-p\fR <number or name>|\fB\-\-string\-dump=\fR<number or name>]
  163. [\fB\-R\fR <number or name>|\fB\-\-relocated\-dump=\fR<number or name>]
  164. [\fB\-z\fR|\fB\-\-decompress\fR]
  165. [\fB\-c\fR|\fB\-\-archive\-index\fR]
  166. [\fB\-w[lLiaprmfFsoRtUuTgAckK]\fR|
  167. \fB\-\-debug\-dump\fR[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames\-interp,=str,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index,=addr,=cu_index,=links,=follow\-links]]
  168. [\fB\-\-dwarf\-depth=\fR\fIn\fR]
  169. [\fB\-\-dwarf\-start=\fR\fIn\fR]
  170. [\fB\-I\fR|\fB\-\-histogram\fR]
  171. [\fB\-v\fR|\fB\-\-version\fR]
  172. [\fB\-W\fR|\fB\-\-wide\fR]
  173. [\fB\-H\fR|\fB\-\-help\fR]
  174. \fIelffile\fR...
  175. .SH "DESCRIPTION"
  176. .IX Header "DESCRIPTION"
  177. \&\fBreadelf\fR displays information about one or more \s-1ELF\s0 format object
  178. files. The options control what particular information to display.
  179. .PP
  180. \&\fIelffile\fR... are the object files to be examined. 32\-bit and
  181. 64\-bit \s-1ELF\s0 files are supported, as are archives containing \s-1ELF\s0 files.
  182. .PP
  183. This program performs a similar function to \fBobjdump\fR but it
  184. goes into more detail and it exists independently of the \s-1BFD\s0
  185. library, so if there is a bug in \s-1BFD\s0 then readelf will not be
  186. affected.
  187. .SH "OPTIONS"
  188. .IX Header "OPTIONS"
  189. The long and short forms of options, shown here as alternatives, are
  190. equivalent. At least one option besides \fB\-v\fR or \fB\-H\fR must be
  191. given.
  192. .IP "\fB\-a\fR" 4
  193. .IX Item "-a"
  194. .PD 0
  195. .IP "\fB\-\-all\fR" 4
  196. .IX Item "--all"
  197. .PD
  198. Equivalent to specifying \fB\-\-file\-header\fR,
  199. \&\fB\-\-program\-headers\fR, \fB\-\-sections\fR, \fB\-\-symbols\fR,
  200. \&\fB\-\-relocs\fR, \fB\-\-dynamic\fR, \fB\-\-notes\fR,
  201. \&\fB\-\-version\-info\fR, \fB\-\-arch\-specific\fR, \fB\-\-unwind\fR,
  202. \&\fB\-\-section\-groups\fR and \fB\-\-histogram\fR.
  203. .Sp
  204. Note \- this option does not enable \fB\-\-use\-dynamic\fR itself, so
  205. if that option is not present on the command line then dynamic symbols
  206. and dynamic relocs will not be displayed.
  207. .IP "\fB\-h\fR" 4
  208. .IX Item "-h"
  209. .PD 0
  210. .IP "\fB\-\-file\-header\fR" 4
  211. .IX Item "--file-header"
  212. .PD
  213. Displays the information contained in the \s-1ELF\s0 header at the start of the
  214. file.
  215. .IP "\fB\-l\fR" 4
  216. .IX Item "-l"
  217. .PD 0
  218. .IP "\fB\-\-program\-headers\fR" 4
  219. .IX Item "--program-headers"
  220. .IP "\fB\-\-segments\fR" 4
  221. .IX Item "--segments"
  222. .PD
  223. Displays the information contained in the file's segment headers, if it
  224. has any.
  225. .IP "\fB\-S\fR" 4
  226. .IX Item "-S"
  227. .PD 0
  228. .IP "\fB\-\-sections\fR" 4
  229. .IX Item "--sections"
  230. .IP "\fB\-\-section\-headers\fR" 4
  231. .IX Item "--section-headers"
  232. .PD
  233. Displays the information contained in the file's section headers, if it
  234. has any.
  235. .IP "\fB\-g\fR" 4
  236. .IX Item "-g"
  237. .PD 0
  238. .IP "\fB\-\-section\-groups\fR" 4
  239. .IX Item "--section-groups"
  240. .PD
  241. Displays the information contained in the file's section groups, if it
  242. has any.
  243. .IP "\fB\-t\fR" 4
  244. .IX Item "-t"
  245. .PD 0
  246. .IP "\fB\-\-section\-details\fR" 4
  247. .IX Item "--section-details"
  248. .PD
  249. Displays the detailed section information. Implies \fB\-S\fR.
  250. .IP "\fB\-s\fR" 4
  251. .IX Item "-s"
  252. .PD 0
  253. .IP "\fB\-\-symbols\fR" 4
  254. .IX Item "--symbols"
  255. .IP "\fB\-\-syms\fR" 4
  256. .IX Item "--syms"
  257. .PD
  258. Displays the entries in symbol table section of the file, if it has one.
  259. If a symbol has version information associated with it then this is
  260. displayed as well. The version string is displayed as a suffix to the
  261. symbol name, preceeded by an @ character. For example
  262. \&\fBfoo@VER_1\fR. If the version is the default version to be used
  263. when resolving unversioned references to the symbol then it is
  264. displayed as a suffix preceeded by two @ characters. For example
  265. \&\fBfoo@@VER_2\fR.
  266. .IP "\fB\-\-dyn\-syms\fR" 4
  267. .IX Item "--dyn-syms"
  268. Displays the entries in dynamic symbol table section of the file, if it
  269. has one. The output format is the same as the format used by the
  270. \&\fB\-\-syms\fR option.
  271. .IP "\fB\-e\fR" 4
  272. .IX Item "-e"
  273. .PD 0
  274. .IP "\fB\-\-headers\fR" 4
  275. .IX Item "--headers"
  276. .PD
  277. Display all the headers in the file. Equivalent to \fB\-h \-l \-S\fR.
  278. .IP "\fB\-n\fR" 4
  279. .IX Item "-n"
  280. .PD 0
  281. .IP "\fB\-\-notes\fR" 4
  282. .IX Item "--notes"
  283. .PD
  284. Displays the contents of the \s-1NOTE\s0 segments and/or sections, if any.
  285. .IP "\fB\-r\fR" 4
  286. .IX Item "-r"
  287. .PD 0
  288. .IP "\fB\-\-relocs\fR" 4
  289. .IX Item "--relocs"
  290. .PD
  291. Displays the contents of the file's relocation section, if it has one.
  292. .IP "\fB\-u\fR" 4
  293. .IX Item "-u"
  294. .PD 0
  295. .IP "\fB\-\-unwind\fR" 4
  296. .IX Item "--unwind"
  297. .PD
  298. Displays the contents of the file's unwind section, if it has one. Only
  299. the unwind sections for \s-1IA64 ELF\s0 files, as well as \s-1ARM\s0 unwind tables
  300. (\f(CW\*(C`.ARM.exidx\*(C'\fR / \f(CW\*(C`.ARM.extab\*(C'\fR) are currently supported. If
  301. support is not yet implemented for your architecture you could try
  302. dumping the contents of the \fI.eh_frames\fR section using the
  303. \&\fB\-\-debug\-dump=frames\fR or \fB\-\-debug\-dump=frames\-interp\fR
  304. options.
  305. .IP "\fB\-d\fR" 4
  306. .IX Item "-d"
  307. .PD 0
  308. .IP "\fB\-\-dynamic\fR" 4
  309. .IX Item "--dynamic"
  310. .PD
  311. Displays the contents of the file's dynamic section, if it has one.
  312. .IP "\fB\-V\fR" 4
  313. .IX Item "-V"
  314. .PD 0
  315. .IP "\fB\-\-version\-info\fR" 4
  316. .IX Item "--version-info"
  317. .PD
  318. Displays the contents of the version sections in the file, it they
  319. exist.
  320. .IP "\fB\-A\fR" 4
  321. .IX Item "-A"
  322. .PD 0
  323. .IP "\fB\-\-arch\-specific\fR" 4
  324. .IX Item "--arch-specific"
  325. .PD
  326. Displays architecture-specific information in the file, if there
  327. is any.
  328. .IP "\fB\-D\fR" 4
  329. .IX Item "-D"
  330. .PD 0
  331. .IP "\fB\-\-use\-dynamic\fR" 4
  332. .IX Item "--use-dynamic"
  333. .PD
  334. When displaying symbols, this option makes \fBreadelf\fR use the
  335. symbol hash tables in the file's dynamic section, rather than the
  336. symbol table sections.
  337. .Sp
  338. When displaying relocations, this option makes \fBreadelf\fR
  339. display the dynamic relocations rather than the static relocations.
  340. .IP "\fB\-x <number or name>\fR" 4
  341. .IX Item "-x <number or name>"
  342. .PD 0
  343. .IP "\fB\-\-hex\-dump=<number or name>\fR" 4
  344. .IX Item "--hex-dump=<number or name>"
  345. .PD
  346. Displays the contents of the indicated section as a hexadecimal bytes.
  347. A number identifies a particular section by index in the section table;
  348. any other string identifies all sections with that name in the object file.
  349. .IP "\fB\-R <number or name>\fR" 4
  350. .IX Item "-R <number or name>"
  351. .PD 0
  352. .IP "\fB\-\-relocated\-dump=<number or name>\fR" 4
  353. .IX Item "--relocated-dump=<number or name>"
  354. .PD
  355. Displays the contents of the indicated section as a hexadecimal
  356. bytes. A number identifies a particular section by index in the
  357. section table; any other string identifies all sections with that name
  358. in the object file. The contents of the section will be relocated
  359. before they are displayed.
  360. .IP "\fB\-p <number or name>\fR" 4
  361. .IX Item "-p <number or name>"
  362. .PD 0
  363. .IP "\fB\-\-string\-dump=<number or name>\fR" 4
  364. .IX Item "--string-dump=<number or name>"
  365. .PD
  366. Displays the contents of the indicated section as printable strings.
  367. A number identifies a particular section by index in the section table;
  368. any other string identifies all sections with that name in the object file.
  369. .IP "\fB\-z\fR" 4
  370. .IX Item "-z"
  371. .PD 0
  372. .IP "\fB\-\-decompress\fR" 4
  373. .IX Item "--decompress"
  374. .PD
  375. Requests that the section(s) being dumped by \fBx\fR, \fBR\fR or
  376. \&\fBp\fR options are decompressed before being displayed. If the
  377. section(s) are not compressed then they are displayed as is.
  378. .IP "\fB\-c\fR" 4
  379. .IX Item "-c"
  380. .PD 0
  381. .IP "\fB\-\-archive\-index\fR" 4
  382. .IX Item "--archive-index"
  383. .PD
  384. Displays the file symbol index information contained in the header part
  385. of binary archives. Performs the same function as the \fBt\fR
  386. command to \fBar\fR, but without using the \s-1BFD\s0 library.
  387. .IP "\fB\-w[lLiaprmfFsoRtUuTgAckK]\fR" 4
  388. .IX Item "-w[lLiaprmfFsoRtUuTgAckK]"
  389. .PD 0
  390. .IP "\fB\-\-debug\-dump[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames\-interp,=str,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index,=addr,=cu_index,=links,=follow\-links]\fR" 4
  391. .IX Item "--debug-dump[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index,=addr,=cu_index,=links,=follow-links]"
  392. .PD
  393. Displays the contents of the \s-1DWARF\s0 debug sections in the file, if any
  394. are present. Compressed debug sections are automatically decompressed
  395. (temporarily) before they are displayed. If one or more of the
  396. optional letters or words follows the switch then only those type(s)
  397. of data will be dumped. The letters and words refer to the following
  398. information:
  399. .RS 4
  400. .ie n .IP """a""" 4
  401. .el .IP "\f(CWa\fR" 4
  402. .IX Item "a"
  403. .PD 0
  404. .ie n .IP """=abbrev""" 4
  405. .el .IP "\f(CW=abbrev\fR" 4
  406. .IX Item "=abbrev"
  407. .PD
  408. Displays the contents of the \fB.debug_abbrev\fR section.
  409. .ie n .IP """A""" 4
  410. .el .IP "\f(CWA\fR" 4
  411. .IX Item "A"
  412. .PD 0
  413. .ie n .IP """=addr""" 4
  414. .el .IP "\f(CW=addr\fR" 4
  415. .IX Item "=addr"
  416. .PD
  417. Displays the contents of the \fB.debug_addr\fR section.
  418. .ie n .IP """c""" 4
  419. .el .IP "\f(CWc\fR" 4
  420. .IX Item "c"
  421. .PD 0
  422. .ie n .IP """=cu_index""" 4
  423. .el .IP "\f(CW=cu_index\fR" 4
  424. .IX Item "=cu_index"
  425. .PD
  426. Displays the contents of the \fB.debug_cu_index\fR and/or
  427. \&\fB.debug_tu_index\fR sections.
  428. .ie n .IP """f""" 4
  429. .el .IP "\f(CWf\fR" 4
  430. .IX Item "f"
  431. .PD 0
  432. .ie n .IP """=frames""" 4
  433. .el .IP "\f(CW=frames\fR" 4
  434. .IX Item "=frames"
  435. .PD
  436. Display the raw contents of a \fB.debug_frame\fR section.
  437. .ie n .IP """F""" 4
  438. .el .IP "\f(CWF\fR" 4
  439. .IX Item "F"
  440. .PD 0
  441. .ie n .IP """=frame\-interp""" 4
  442. .el .IP "\f(CW=frame\-interp\fR" 4
  443. .IX Item "=frame-interp"
  444. .PD
  445. Display the interpreted contents of a \fB.debug_frame\fR section.
  446. .ie n .IP """g""" 4
  447. .el .IP "\f(CWg\fR" 4
  448. .IX Item "g"
  449. .PD 0
  450. .ie n .IP """=gdb_index""" 4
  451. .el .IP "\f(CW=gdb_index\fR" 4
  452. .IX Item "=gdb_index"
  453. .PD
  454. Displays the contents of the \fB.gdb_index\fR and/or
  455. \&\fB.debug_names\fR sections.
  456. .ie n .IP """i""" 4
  457. .el .IP "\f(CWi\fR" 4
  458. .IX Item "i"
  459. .PD 0
  460. .ie n .IP """=info""" 4
  461. .el .IP "\f(CW=info\fR" 4
  462. .IX Item "=info"
  463. .PD
  464. Displays the contents of the \fB.debug_info\fR section. Note: the
  465. output from this option can also be restricted by the use of the
  466. \&\fB\-\-dwarf\-depth\fR and \fB\-\-dwarf\-start\fR options.
  467. .ie n .IP """k""" 4
  468. .el .IP "\f(CWk\fR" 4
  469. .IX Item "k"
  470. .PD 0
  471. .ie n .IP """=links""" 4
  472. .el .IP "\f(CW=links\fR" 4
  473. .IX Item "=links"
  474. .PD
  475. Displays the contents of the \fB.gnu_debuglink\fR and/or
  476. \&\fB.gnu_debugaltlink\fR sections. Also displays the link to a
  477. separate dwarf object file (dwo), if one is specified by the
  478. DW_AT_GNU_dwo_name or DW_AT_dwo_name attributes in the
  479. \&\fB.debug_info\fR section.
  480. .ie n .IP """K""" 4
  481. .el .IP "\f(CWK\fR" 4
  482. .IX Item "K"
  483. .PD 0
  484. .ie n .IP """=follow\-links""" 4
  485. .el .IP "\f(CW=follow\-links\fR" 4
  486. .IX Item "=follow-links"
  487. .PD
  488. Display the contents of any selected debug sections that are found in
  489. a linked, separate debug info file. This can result in multiple
  490. versions of the same debug section being displayed if both the main
  491. file and the separate debug info file contain sections with the same
  492. name.
  493. .Sp
  494. In addition, when displaying \s-1DWARF\s0 attributes, if a form is found that
  495. references the separate debug info file, then the referenced contents
  496. will also be displayed.
  497. .ie n .IP """l""" 4
  498. .el .IP "\f(CWl\fR" 4
  499. .IX Item "l"
  500. .PD 0
  501. .ie n .IP """=rawline""" 4
  502. .el .IP "\f(CW=rawline\fR" 4
  503. .IX Item "=rawline"
  504. .PD
  505. Displays the contents of the \fB.debug_line\fR section in a raw
  506. format.
  507. .ie n .IP """L""" 4
  508. .el .IP "\f(CWL\fR" 4
  509. .IX Item "L"
  510. .PD 0
  511. .ie n .IP """=decodedline""" 4
  512. .el .IP "\f(CW=decodedline\fR" 4
  513. .IX Item "=decodedline"
  514. .PD
  515. Displays the interpreted contents of the \fB.debug_line\fR section.
  516. .ie n .IP """m""" 4
  517. .el .IP "\f(CWm\fR" 4
  518. .IX Item "m"
  519. .PD 0
  520. .ie n .IP """=macro""" 4
  521. .el .IP "\f(CW=macro\fR" 4
  522. .IX Item "=macro"
  523. .PD
  524. Displays the contents of the \fB.debug_macro\fR and/or
  525. \&\fB.debug_macinfo\fR sections.
  526. .ie n .IP """o""" 4
  527. .el .IP "\f(CWo\fR" 4
  528. .IX Item "o"
  529. .PD 0
  530. .ie n .IP """=loc""" 4
  531. .el .IP "\f(CW=loc\fR" 4
  532. .IX Item "=loc"
  533. .PD
  534. Displays the contents of the \fB.debug_loc\fR and/or
  535. \&\fB.debug_loclists\fR sections.
  536. .ie n .IP """p""" 4
  537. .el .IP "\f(CWp\fR" 4
  538. .IX Item "p"
  539. .PD 0
  540. .ie n .IP """=pubnames""" 4
  541. .el .IP "\f(CW=pubnames\fR" 4
  542. .IX Item "=pubnames"
  543. .PD
  544. Displays the contents of the \fB.debug_pubnames\fR and/or
  545. \&\fB.debug_gnu_pubnames\fR sections.
  546. .ie n .IP """r""" 4
  547. .el .IP "\f(CWr\fR" 4
  548. .IX Item "r"
  549. .PD 0
  550. .ie n .IP """=aranges""" 4
  551. .el .IP "\f(CW=aranges\fR" 4
  552. .IX Item "=aranges"
  553. .PD
  554. Displays the contents of the \fB.debug_aranges\fR section.
  555. .ie n .IP """R""" 4
  556. .el .IP "\f(CWR\fR" 4
  557. .IX Item "R"
  558. .PD 0
  559. .ie n .IP """=Ranges""" 4
  560. .el .IP "\f(CW=Ranges\fR" 4
  561. .IX Item "=Ranges"
  562. .PD
  563. Displays the contents of the \fB.debug_ranges\fR and/or
  564. \&\fB.debug_rnglists\fR sections.
  565. .ie n .IP """s""" 4
  566. .el .IP "\f(CWs\fR" 4
  567. .IX Item "s"
  568. .PD 0
  569. .ie n .IP """=str""" 4
  570. .el .IP "\f(CW=str\fR" 4
  571. .IX Item "=str"
  572. .PD
  573. Displays the contents of the \fB.debug_str\fR, \fB.debug_line_str\fR
  574. and/or \fB.debug_str_offsets\fR sections.
  575. .ie n .IP """t""" 4
  576. .el .IP "\f(CWt\fR" 4
  577. .IX Item "t"
  578. .PD 0
  579. .ie n .IP """=pubtype""" 4
  580. .el .IP "\f(CW=pubtype\fR" 4
  581. .IX Item "=pubtype"
  582. .PD
  583. Displays the contents of the \fB.debug_pubtypes\fR and/or
  584. \&\fB.debug_gnu_pubtypes\fR sections.
  585. .ie n .IP """T""" 4
  586. .el .IP "\f(CWT\fR" 4
  587. .IX Item "T"
  588. .PD 0
  589. .ie n .IP """=trace_aranges""" 4
  590. .el .IP "\f(CW=trace_aranges\fR" 4
  591. .IX Item "=trace_aranges"
  592. .PD
  593. Displays the contents of the \fB.trace_aranges\fR section.
  594. .ie n .IP """u""" 4
  595. .el .IP "\f(CWu\fR" 4
  596. .IX Item "u"
  597. .PD 0
  598. .ie n .IP """=trace_abbrev""" 4
  599. .el .IP "\f(CW=trace_abbrev\fR" 4
  600. .IX Item "=trace_abbrev"
  601. .PD
  602. Displays the contents of the \fB.trace_abbrev\fR section.
  603. .ie n .IP """U""" 4
  604. .el .IP "\f(CWU\fR" 4
  605. .IX Item "U"
  606. .PD 0
  607. .ie n .IP """=trace_info""" 4
  608. .el .IP "\f(CW=trace_info\fR" 4
  609. .IX Item "=trace_info"
  610. .PD
  611. Displays the contents of the \fB.trace_info\fR section.
  612. .RE
  613. .RS 4
  614. .Sp
  615. Note: displaying the contents of \fB.debug_static_funcs\fR,
  616. \&\fB.debug_static_vars\fR and \fBdebug_weaknames\fR sections is not
  617. currently supported.
  618. .RE
  619. .IP "\fB\-\-dwarf\-depth=\fR\fIn\fR" 4
  620. .IX Item "--dwarf-depth=n"
  621. Limit the dump of the \f(CW\*(C`.debug_info\*(C'\fR section to \fIn\fR children.
  622. This is only useful with \fB\-\-debug\-dump=info\fR. The default is
  623. to print all DIEs; the special value 0 for \fIn\fR will also have this
  624. effect.
  625. .Sp
  626. With a non-zero value for \fIn\fR, DIEs at or deeper than \fIn\fR
  627. levels will not be printed. The range for \fIn\fR is zero-based.
  628. .IP "\fB\-\-dwarf\-start=\fR\fIn\fR" 4
  629. .IX Item "--dwarf-start=n"
  630. Print only DIEs beginning with the \s-1DIE\s0 numbered \fIn\fR. This is only
  631. useful with \fB\-\-debug\-dump=info\fR.
  632. .Sp
  633. If specified, this option will suppress printing of any header
  634. information and all DIEs before the \s-1DIE\s0 numbered \fIn\fR. Only
  635. siblings and children of the specified \s-1DIE\s0 will be printed.
  636. .Sp
  637. This can be used in conjunction with \fB\-\-dwarf\-depth\fR.
  638. .IP "\fB\-I\fR" 4
  639. .IX Item "-I"
  640. .PD 0
  641. .IP "\fB\-\-histogram\fR" 4
  642. .IX Item "--histogram"
  643. .PD
  644. Display a histogram of bucket list lengths when displaying the contents
  645. of the symbol tables.
  646. .IP "\fB\-v\fR" 4
  647. .IX Item "-v"
  648. .PD 0
  649. .IP "\fB\-\-version\fR" 4
  650. .IX Item "--version"
  651. .PD
  652. Display the version number of readelf.
  653. .IP "\fB\-W\fR" 4
  654. .IX Item "-W"
  655. .PD 0
  656. .IP "\fB\-\-wide\fR" 4
  657. .IX Item "--wide"
  658. .PD
  659. Don't break output lines to fit into 80 columns. By default
  660. \&\fBreadelf\fR breaks section header and segment listing lines for
  661. 64\-bit \s-1ELF\s0 files, so that they fit into 80 columns. This option causes
  662. \&\fBreadelf\fR to print each section header resp. each segment one a
  663. single line, which is far more readable on terminals wider than 80 columns.
  664. .IP "\fB\-H\fR" 4
  665. .IX Item "-H"
  666. .PD 0
  667. .IP "\fB\-\-help\fR" 4
  668. .IX Item "--help"
  669. .PD
  670. Display the command-line options understood by \fBreadelf\fR.
  671. .IP "\fB@\fR\fIfile\fR" 4
  672. .IX Item "@file"
  673. Read command-line options from \fIfile\fR. The options read are
  674. inserted in place of the original @\fIfile\fR option. If \fIfile\fR
  675. does not exist, or cannot be read, then the option will be treated
  676. literally, and not removed.
  677. .Sp
  678. Options in \fIfile\fR are separated by whitespace. A whitespace
  679. character may be included in an option by surrounding the entire
  680. option in either single or double quotes. Any character (including a
  681. backslash) may be included by prefixing the character to be included
  682. with a backslash. The \fIfile\fR may itself contain additional
  683. @\fIfile\fR options; any such options will be processed recursively.
  684. .SH "SEE ALSO"
  685. .IX Header "SEE ALSO"
  686. \&\fBobjdump\fR\|(1), and the Info entries for \fIbinutils\fR.
  687. .SH "COPYRIGHT"
  688. .IX Header "COPYRIGHT"
  689. Copyright (c) 1991\-2019 Free Software Foundation, Inc.
  690. .PP
  691. Permission is granted to copy, distribute and/or modify this document
  692. under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3
  693. or any later version published by the Free Software Foundation;
  694. with no Invariant Sections, with no Front-Cover Texts, and with no
  695. Back-Cover Texts. A copy of the license is included in the
  696. section entitled \*(L"\s-1GNU\s0 Free Documentation License\*(R".