You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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