x86_64-linux-gnu-readelf.1 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720
  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-09-14" "binutils-2.34" "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 \- display 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\-\-ctf=\fR\fIsection\fR]
  171. [\fB\-\-ctf\-parent=\fR\fIsection\fR]
  172. [\fB\-\-ctf\-symbols=\fR\fIsection\fR]
  173. [\fB\-\-ctf\-strings=\fR\fIsection\fR]
  174. [\fB\-I\fR|\fB\-\-histogram\fR]
  175. [\fB\-v\fR|\fB\-\-version\fR]
  176. [\fB\-W\fR|\fB\-\-wide\fR]
  177. [\fB\-H\fR|\fB\-\-help\fR]
  178. \fIelffile\fR...
  179. .SH "DESCRIPTION"
  180. .IX Header "DESCRIPTION"
  181. \&\fBreadelf\fR displays information about one or more \s-1ELF\s0 format object
  182. files. The options control what particular information to display.
  183. .PP
  184. \&\fIelffile\fR... are the object files to be examined. 32\-bit and
  185. 64\-bit \s-1ELF\s0 files are supported, as are archives containing \s-1ELF\s0 files.
  186. .PP
  187. This program performs a similar function to \fBobjdump\fR but it
  188. goes into more detail and it exists independently of the \s-1BFD\s0
  189. library, so if there is a bug in \s-1BFD\s0 then readelf will not be
  190. affected.
  191. .SH "OPTIONS"
  192. .IX Header "OPTIONS"
  193. The long and short forms of options, shown here as alternatives, are
  194. equivalent. At least one option besides \fB\-v\fR or \fB\-H\fR must be
  195. given.
  196. .IP "\fB\-a\fR" 4
  197. .IX Item "-a"
  198. .PD 0
  199. .IP "\fB\-\-all\fR" 4
  200. .IX Item "--all"
  201. .PD
  202. Equivalent to specifying \fB\-\-file\-header\fR,
  203. \&\fB\-\-program\-headers\fR, \fB\-\-sections\fR, \fB\-\-symbols\fR,
  204. \&\fB\-\-relocs\fR, \fB\-\-dynamic\fR, \fB\-\-notes\fR,
  205. \&\fB\-\-version\-info\fR, \fB\-\-arch\-specific\fR, \fB\-\-unwind\fR,
  206. \&\fB\-\-section\-groups\fR and \fB\-\-histogram\fR.
  207. .Sp
  208. Note \- this option does not enable \fB\-\-use\-dynamic\fR itself, so
  209. if that option is not present on the command line then dynamic symbols
  210. and dynamic relocs will not be displayed.
  211. .IP "\fB\-h\fR" 4
  212. .IX Item "-h"
  213. .PD 0
  214. .IP "\fB\-\-file\-header\fR" 4
  215. .IX Item "--file-header"
  216. .PD
  217. Displays the information contained in the \s-1ELF\s0 header at the start of the
  218. file.
  219. .IP "\fB\-l\fR" 4
  220. .IX Item "-l"
  221. .PD 0
  222. .IP "\fB\-\-program\-headers\fR" 4
  223. .IX Item "--program-headers"
  224. .IP "\fB\-\-segments\fR" 4
  225. .IX Item "--segments"
  226. .PD
  227. Displays the information contained in the file's segment headers, if it
  228. has any.
  229. .IP "\fB\-S\fR" 4
  230. .IX Item "-S"
  231. .PD 0
  232. .IP "\fB\-\-sections\fR" 4
  233. .IX Item "--sections"
  234. .IP "\fB\-\-section\-headers\fR" 4
  235. .IX Item "--section-headers"
  236. .PD
  237. Displays the information contained in the file's section headers, if it
  238. has any.
  239. .IP "\fB\-g\fR" 4
  240. .IX Item "-g"
  241. .PD 0
  242. .IP "\fB\-\-section\-groups\fR" 4
  243. .IX Item "--section-groups"
  244. .PD
  245. Displays the information contained in the file's section groups, if it
  246. has any.
  247. .IP "\fB\-t\fR" 4
  248. .IX Item "-t"
  249. .PD 0
  250. .IP "\fB\-\-section\-details\fR" 4
  251. .IX Item "--section-details"
  252. .PD
  253. Displays the detailed section information. Implies \fB\-S\fR.
  254. .IP "\fB\-s\fR" 4
  255. .IX Item "-s"
  256. .PD 0
  257. .IP "\fB\-\-symbols\fR" 4
  258. .IX Item "--symbols"
  259. .IP "\fB\-\-syms\fR" 4
  260. .IX Item "--syms"
  261. .PD
  262. Displays the entries in symbol table section of the file, if it has one.
  263. If a symbol has version information associated with it then this is
  264. displayed as well. The version string is displayed as a suffix to the
  265. symbol name, preceeded by an @ character. For example
  266. \&\fBfoo@VER_1\fR. If the version is the default version to be used
  267. when resolving unversioned references to the symbol then it is
  268. displayed as a suffix preceeded by two @ characters. For example
  269. \&\fBfoo@@VER_2\fR.
  270. .IP "\fB\-\-dyn\-syms\fR" 4
  271. .IX Item "--dyn-syms"
  272. Displays the entries in dynamic symbol table section of the file, if it
  273. has one. The output format is the same as the format used by the
  274. \&\fB\-\-syms\fR option.
  275. .IP "\fB\-e\fR" 4
  276. .IX Item "-e"
  277. .PD 0
  278. .IP "\fB\-\-headers\fR" 4
  279. .IX Item "--headers"
  280. .PD
  281. Display all the headers in the file. Equivalent to \fB\-h \-l \-S\fR.
  282. .IP "\fB\-n\fR" 4
  283. .IX Item "-n"
  284. .PD 0
  285. .IP "\fB\-\-notes\fR" 4
  286. .IX Item "--notes"
  287. .PD
  288. Displays the contents of the \s-1NOTE\s0 segments and/or sections, if any.
  289. .IP "\fB\-r\fR" 4
  290. .IX Item "-r"
  291. .PD 0
  292. .IP "\fB\-\-relocs\fR" 4
  293. .IX Item "--relocs"
  294. .PD
  295. Displays the contents of the file's relocation section, if it has one.
  296. .IP "\fB\-u\fR" 4
  297. .IX Item "-u"
  298. .PD 0
  299. .IP "\fB\-\-unwind\fR" 4
  300. .IX Item "--unwind"
  301. .PD
  302. Displays the contents of the file's unwind section, if it has one. Only
  303. the unwind sections for \s-1IA64 ELF\s0 files, as well as \s-1ARM\s0 unwind tables
  304. (\f(CW\*(C`.ARM.exidx\*(C'\fR / \f(CW\*(C`.ARM.extab\*(C'\fR) are currently supported. If
  305. support is not yet implemented for your architecture you could try
  306. dumping the contents of the \fI.eh_frames\fR section using the
  307. \&\fB\-\-debug\-dump=frames\fR or \fB\-\-debug\-dump=frames\-interp\fR
  308. options.
  309. .IP "\fB\-d\fR" 4
  310. .IX Item "-d"
  311. .PD 0
  312. .IP "\fB\-\-dynamic\fR" 4
  313. .IX Item "--dynamic"
  314. .PD
  315. Displays the contents of the file's dynamic section, if it has one.
  316. .IP "\fB\-V\fR" 4
  317. .IX Item "-V"
  318. .PD 0
  319. .IP "\fB\-\-version\-info\fR" 4
  320. .IX Item "--version-info"
  321. .PD
  322. Displays the contents of the version sections in the file, it they
  323. exist.
  324. .IP "\fB\-A\fR" 4
  325. .IX Item "-A"
  326. .PD 0
  327. .IP "\fB\-\-arch\-specific\fR" 4
  328. .IX Item "--arch-specific"
  329. .PD
  330. Displays architecture-specific information in the file, if there
  331. is any.
  332. .IP "\fB\-D\fR" 4
  333. .IX Item "-D"
  334. .PD 0
  335. .IP "\fB\-\-use\-dynamic\fR" 4
  336. .IX Item "--use-dynamic"
  337. .PD
  338. When displaying symbols, this option makes \fBreadelf\fR use the
  339. symbol hash tables in the file's dynamic section, rather than the
  340. symbol table sections.
  341. .Sp
  342. When displaying relocations, this option makes \fBreadelf\fR
  343. display the dynamic relocations rather than the static relocations.
  344. .IP "\fB\-x <number or name>\fR" 4
  345. .IX Item "-x <number or name>"
  346. .PD 0
  347. .IP "\fB\-\-hex\-dump=<number or name>\fR" 4
  348. .IX Item "--hex-dump=<number or name>"
  349. .PD
  350. Displays the contents of the indicated section as a hexadecimal bytes.
  351. A number identifies a particular section by index in the section table;
  352. any other string identifies all sections with that name in the object file.
  353. .IP "\fB\-R <number or name>\fR" 4
  354. .IX Item "-R <number or name>"
  355. .PD 0
  356. .IP "\fB\-\-relocated\-dump=<number or name>\fR" 4
  357. .IX Item "--relocated-dump=<number or name>"
  358. .PD
  359. Displays the contents of the indicated section as a hexadecimal
  360. bytes. A number identifies a particular section by index in the
  361. section table; any other string identifies all sections with that name
  362. in the object file. The contents of the section will be relocated
  363. before they are displayed.
  364. .IP "\fB\-p <number or name>\fR" 4
  365. .IX Item "-p <number or name>"
  366. .PD 0
  367. .IP "\fB\-\-string\-dump=<number or name>\fR" 4
  368. .IX Item "--string-dump=<number or name>"
  369. .PD
  370. Displays the contents of the indicated section as printable strings.
  371. A number identifies a particular section by index in the section table;
  372. any other string identifies all sections with that name in the object file.
  373. .IP "\fB\-z\fR" 4
  374. .IX Item "-z"
  375. .PD 0
  376. .IP "\fB\-\-decompress\fR" 4
  377. .IX Item "--decompress"
  378. .PD
  379. Requests that the section(s) being dumped by \fBx\fR, \fBR\fR or
  380. \&\fBp\fR options are decompressed before being displayed. If the
  381. section(s) are not compressed then they are displayed as is.
  382. .IP "\fB\-c\fR" 4
  383. .IX Item "-c"
  384. .PD 0
  385. .IP "\fB\-\-archive\-index\fR" 4
  386. .IX Item "--archive-index"
  387. .PD
  388. Displays the file symbol index information contained in the header part
  389. of binary archives. Performs the same function as the \fBt\fR
  390. command to \fBar\fR, but without using the \s-1BFD\s0 library.
  391. .IP "\fB\-w[lLiaprmfFsoRtUuTgAckK]\fR" 4
  392. .IX Item "-w[lLiaprmfFsoRtUuTgAckK]"
  393. .PD 0
  394. .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
  395. .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]"
  396. .PD
  397. Displays the contents of the \s-1DWARF\s0 debug sections in the file, if any
  398. are present. Compressed debug sections are automatically decompressed
  399. (temporarily) before they are displayed. If one or more of the
  400. optional letters or words follows the switch then only those type(s)
  401. of data will be dumped. The letters and words refer to the following
  402. information:
  403. .RS 4
  404. .ie n .IP """a""" 4
  405. .el .IP "\f(CWa\fR" 4
  406. .IX Item "a"
  407. .PD 0
  408. .ie n .IP """=abbrev""" 4
  409. .el .IP "\f(CW=abbrev\fR" 4
  410. .IX Item "=abbrev"
  411. .PD
  412. Displays the contents of the \fB.debug_abbrev\fR section.
  413. .ie n .IP """A""" 4
  414. .el .IP "\f(CWA\fR" 4
  415. .IX Item "A"
  416. .PD 0
  417. .ie n .IP """=addr""" 4
  418. .el .IP "\f(CW=addr\fR" 4
  419. .IX Item "=addr"
  420. .PD
  421. Displays the contents of the \fB.debug_addr\fR section.
  422. .ie n .IP """c""" 4
  423. .el .IP "\f(CWc\fR" 4
  424. .IX Item "c"
  425. .PD 0
  426. .ie n .IP """=cu_index""" 4
  427. .el .IP "\f(CW=cu_index\fR" 4
  428. .IX Item "=cu_index"
  429. .PD
  430. Displays the contents of the \fB.debug_cu_index\fR and/or
  431. \&\fB.debug_tu_index\fR sections.
  432. .ie n .IP """f""" 4
  433. .el .IP "\f(CWf\fR" 4
  434. .IX Item "f"
  435. .PD 0
  436. .ie n .IP """=frames""" 4
  437. .el .IP "\f(CW=frames\fR" 4
  438. .IX Item "=frames"
  439. .PD
  440. Display the raw contents of a \fB.debug_frame\fR section.
  441. .ie n .IP """F""" 4
  442. .el .IP "\f(CWF\fR" 4
  443. .IX Item "F"
  444. .PD 0
  445. .ie n .IP """=frame\-interp""" 4
  446. .el .IP "\f(CW=frame\-interp\fR" 4
  447. .IX Item "=frame-interp"
  448. .PD
  449. Display the interpreted contents of a \fB.debug_frame\fR section.
  450. .ie n .IP """g""" 4
  451. .el .IP "\f(CWg\fR" 4
  452. .IX Item "g"
  453. .PD 0
  454. .ie n .IP """=gdb_index""" 4
  455. .el .IP "\f(CW=gdb_index\fR" 4
  456. .IX Item "=gdb_index"
  457. .PD
  458. Displays the contents of the \fB.gdb_index\fR and/or
  459. \&\fB.debug_names\fR sections.
  460. .ie n .IP """i""" 4
  461. .el .IP "\f(CWi\fR" 4
  462. .IX Item "i"
  463. .PD 0
  464. .ie n .IP """=info""" 4
  465. .el .IP "\f(CW=info\fR" 4
  466. .IX Item "=info"
  467. .PD
  468. Displays the contents of the \fB.debug_info\fR section. Note: the
  469. output from this option can also be restricted by the use of the
  470. \&\fB\-\-dwarf\-depth\fR and \fB\-\-dwarf\-start\fR options.
  471. .ie n .IP """k""" 4
  472. .el .IP "\f(CWk\fR" 4
  473. .IX Item "k"
  474. .PD 0
  475. .ie n .IP """=links""" 4
  476. .el .IP "\f(CW=links\fR" 4
  477. .IX Item "=links"
  478. .PD
  479. Displays the contents of the \fB.gnu_debuglink\fR and/or
  480. \&\fB.gnu_debugaltlink\fR sections. Also displays any links to
  481. separate dwarf object files (dwo), if they are specified by the
  482. DW_AT_GNU_dwo_name or DW_AT_dwo_name attributes in the
  483. \&\fB.debug_info\fR section.
  484. .ie n .IP """K""" 4
  485. .el .IP "\f(CWK\fR" 4
  486. .IX Item "K"
  487. .PD 0
  488. .ie n .IP """=follow\-links""" 4
  489. .el .IP "\f(CW=follow\-links\fR" 4
  490. .IX Item "=follow-links"
  491. .PD
  492. Display the contents of any selected debug sections that are found in
  493. linked, separate debug info file(s). This can result in multiple
  494. versions of the same debug section being displayed if it exists in
  495. more than one file.
  496. .Sp
  497. In addition, when displaying \s-1DWARF\s0 attributes, if a form is found that
  498. references the separate debug info file, then the referenced contents
  499. will also be displayed.
  500. .ie n .IP """l""" 4
  501. .el .IP "\f(CWl\fR" 4
  502. .IX Item "l"
  503. .PD 0
  504. .ie n .IP """=rawline""" 4
  505. .el .IP "\f(CW=rawline\fR" 4
  506. .IX Item "=rawline"
  507. .PD
  508. Displays the contents of the \fB.debug_line\fR section in a raw
  509. format.
  510. .ie n .IP """L""" 4
  511. .el .IP "\f(CWL\fR" 4
  512. .IX Item "L"
  513. .PD 0
  514. .ie n .IP """=decodedline""" 4
  515. .el .IP "\f(CW=decodedline\fR" 4
  516. .IX Item "=decodedline"
  517. .PD
  518. Displays the interpreted contents of the \fB.debug_line\fR section.
  519. .ie n .IP """m""" 4
  520. .el .IP "\f(CWm\fR" 4
  521. .IX Item "m"
  522. .PD 0
  523. .ie n .IP """=macro""" 4
  524. .el .IP "\f(CW=macro\fR" 4
  525. .IX Item "=macro"
  526. .PD
  527. Displays the contents of the \fB.debug_macro\fR and/or
  528. \&\fB.debug_macinfo\fR sections.
  529. .ie n .IP """o""" 4
  530. .el .IP "\f(CWo\fR" 4
  531. .IX Item "o"
  532. .PD 0
  533. .ie n .IP """=loc""" 4
  534. .el .IP "\f(CW=loc\fR" 4
  535. .IX Item "=loc"
  536. .PD
  537. Displays the contents of the \fB.debug_loc\fR and/or
  538. \&\fB.debug_loclists\fR sections.
  539. .ie n .IP """p""" 4
  540. .el .IP "\f(CWp\fR" 4
  541. .IX Item "p"
  542. .PD 0
  543. .ie n .IP """=pubnames""" 4
  544. .el .IP "\f(CW=pubnames\fR" 4
  545. .IX Item "=pubnames"
  546. .PD
  547. Displays the contents of the \fB.debug_pubnames\fR and/or
  548. \&\fB.debug_gnu_pubnames\fR sections.
  549. .ie n .IP """r""" 4
  550. .el .IP "\f(CWr\fR" 4
  551. .IX Item "r"
  552. .PD 0
  553. .ie n .IP """=aranges""" 4
  554. .el .IP "\f(CW=aranges\fR" 4
  555. .IX Item "=aranges"
  556. .PD
  557. Displays the contents of the \fB.debug_aranges\fR section.
  558. .ie n .IP """R""" 4
  559. .el .IP "\f(CWR\fR" 4
  560. .IX Item "R"
  561. .PD 0
  562. .ie n .IP """=Ranges""" 4
  563. .el .IP "\f(CW=Ranges\fR" 4
  564. .IX Item "=Ranges"
  565. .PD
  566. Displays the contents of the \fB.debug_ranges\fR and/or
  567. \&\fB.debug_rnglists\fR sections.
  568. .ie n .IP """s""" 4
  569. .el .IP "\f(CWs\fR" 4
  570. .IX Item "s"
  571. .PD 0
  572. .ie n .IP """=str""" 4
  573. .el .IP "\f(CW=str\fR" 4
  574. .IX Item "=str"
  575. .PD
  576. Displays the contents of the \fB.debug_str\fR, \fB.debug_line_str\fR
  577. and/or \fB.debug_str_offsets\fR sections.
  578. .ie n .IP """t""" 4
  579. .el .IP "\f(CWt\fR" 4
  580. .IX Item "t"
  581. .PD 0
  582. .ie n .IP """=pubtype""" 4
  583. .el .IP "\f(CW=pubtype\fR" 4
  584. .IX Item "=pubtype"
  585. .PD
  586. Displays the contents of the \fB.debug_pubtypes\fR and/or
  587. \&\fB.debug_gnu_pubtypes\fR sections.
  588. .ie n .IP """T""" 4
  589. .el .IP "\f(CWT\fR" 4
  590. .IX Item "T"
  591. .PD 0
  592. .ie n .IP """=trace_aranges""" 4
  593. .el .IP "\f(CW=trace_aranges\fR" 4
  594. .IX Item "=trace_aranges"
  595. .PD
  596. Displays the contents of the \fB.trace_aranges\fR section.
  597. .ie n .IP """u""" 4
  598. .el .IP "\f(CWu\fR" 4
  599. .IX Item "u"
  600. .PD 0
  601. .ie n .IP """=trace_abbrev""" 4
  602. .el .IP "\f(CW=trace_abbrev\fR" 4
  603. .IX Item "=trace_abbrev"
  604. .PD
  605. Displays the contents of the \fB.trace_abbrev\fR section.
  606. .ie n .IP """U""" 4
  607. .el .IP "\f(CWU\fR" 4
  608. .IX Item "U"
  609. .PD 0
  610. .ie n .IP """=trace_info""" 4
  611. .el .IP "\f(CW=trace_info\fR" 4
  612. .IX Item "=trace_info"
  613. .PD
  614. Displays the contents of the \fB.trace_info\fR section.
  615. .RE
  616. .RS 4
  617. .Sp
  618. Note: displaying the contents of \fB.debug_static_funcs\fR,
  619. \&\fB.debug_static_vars\fR and \fBdebug_weaknames\fR sections is not
  620. currently supported.
  621. .RE
  622. .IP "\fB\-\-dwarf\-depth=\fR\fIn\fR" 4
  623. .IX Item "--dwarf-depth=n"
  624. Limit the dump of the \f(CW\*(C`.debug_info\*(C'\fR section to \fIn\fR children.
  625. This is only useful with \fB\-\-debug\-dump=info\fR. The default is
  626. to print all DIEs; the special value 0 for \fIn\fR will also have this
  627. effect.
  628. .Sp
  629. With a non-zero value for \fIn\fR, DIEs at or deeper than \fIn\fR
  630. levels will not be printed. The range for \fIn\fR is zero-based.
  631. .IP "\fB\-\-dwarf\-start=\fR\fIn\fR" 4
  632. .IX Item "--dwarf-start=n"
  633. Print only DIEs beginning with the \s-1DIE\s0 numbered \fIn\fR. This is only
  634. useful with \fB\-\-debug\-dump=info\fR.
  635. .Sp
  636. If specified, this option will suppress printing of any header
  637. information and all DIEs before the \s-1DIE\s0 numbered \fIn\fR. Only
  638. siblings and children of the specified \s-1DIE\s0 will be printed.
  639. .Sp
  640. This can be used in conjunction with \fB\-\-dwarf\-depth\fR.
  641. .IP "\fB\-\-ctf=\fR\fIsection\fR" 4
  642. .IX Item "--ctf=section"
  643. Display the contents of the specified \s-1CTF\s0 section. \s-1CTF\s0 sections themselves
  644. contain many subsections, all of which are displayed in order.
  645. .IP "\fB\-\-ctf\-parent=\fR\fIsection\fR" 4
  646. .IX Item "--ctf-parent=section"
  647. Specify the name of another section from which the \s-1CTF\s0 dictionary can inherit
  648. types. (If none is specified, we assume the \s-1CTF\s0 dictionary inherits types
  649. from the default-named member of the archive contained within this section.)
  650. .IP "\fB\-\-ctf\-symbols=\fR\fIsection\fR" 4
  651. .IX Item "--ctf-symbols=section"
  652. .PD 0
  653. .IP "\fB\-\-ctf\-strings=\fR\fIsection\fR" 4
  654. .IX Item "--ctf-strings=section"
  655. .PD
  656. Specify the name of another section from which the \s-1CTF\s0 file can inherit
  657. strings and symbols. By default, the \f(CW\*(C`.symtab\*(C'\fR and its linked
  658. string table are used.
  659. .Sp
  660. If either of \fB\-\-ctf\-symbols\fR or \fB\-\-ctf\-strings\fR is specified, the
  661. other must be specified as well.
  662. .IP "\fB\-I\fR" 4
  663. .IX Item "-I"
  664. .PD 0
  665. .IP "\fB\-\-histogram\fR" 4
  666. .IX Item "--histogram"
  667. .PD
  668. Display a histogram of bucket list lengths when displaying the contents
  669. of the symbol tables.
  670. .IP "\fB\-v\fR" 4
  671. .IX Item "-v"
  672. .PD 0
  673. .IP "\fB\-\-version\fR" 4
  674. .IX Item "--version"
  675. .PD
  676. Display the version number of readelf.
  677. .IP "\fB\-W\fR" 4
  678. .IX Item "-W"
  679. .PD 0
  680. .IP "\fB\-\-wide\fR" 4
  681. .IX Item "--wide"
  682. .PD
  683. Don't break output lines to fit into 80 columns. By default
  684. \&\fBreadelf\fR breaks section header and segment listing lines for
  685. 64\-bit \s-1ELF\s0 files, so that they fit into 80 columns. This option causes
  686. \&\fBreadelf\fR to print each section header resp. each segment one a
  687. single line, which is far more readable on terminals wider than 80 columns.
  688. .IP "\fB\-H\fR" 4
  689. .IX Item "-H"
  690. .PD 0
  691. .IP "\fB\-\-help\fR" 4
  692. .IX Item "--help"
  693. .PD
  694. Display the command-line options understood by \fBreadelf\fR.
  695. .IP "\fB@\fR\fIfile\fR" 4
  696. .IX Item "@file"
  697. Read command-line options from \fIfile\fR. The options read are
  698. inserted in place of the original @\fIfile\fR option. If \fIfile\fR
  699. does not exist, or cannot be read, then the option will be treated
  700. literally, and not removed.
  701. .Sp
  702. Options in \fIfile\fR are separated by whitespace. A whitespace
  703. character may be included in an option by surrounding the entire
  704. option in either single or double quotes. Any character (including a
  705. backslash) may be included by prefixing the character to be included
  706. with a backslash. The \fIfile\fR may itself contain additional
  707. @\fIfile\fR options; any such options will be processed recursively.
  708. .SH "SEE ALSO"
  709. .IX Header "SEE ALSO"
  710. \&\fBobjdump\fR\|(1), and the Info entries for \fIbinutils\fR.
  711. .SH "COPYRIGHT"
  712. .IX Header "COPYRIGHT"
  713. Copyright (c) 1991\-2020 Free Software Foundation, Inc.
  714. .PP
  715. Permission is granted to copy, distribute and/or modify this document
  716. under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3
  717. or any later version published by the Free Software Foundation;
  718. with no Invariant Sections, with no Front-Cover Texts, and with no
  719. Back-Cover Texts. A copy of the license is included in the
  720. section entitled \*(L"\s-1GNU\s0 Free Documentation License\*(R".