aarch64-none-linux-gnu-readelf.1 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792
  1. .\" Automatically generated by Pod::Man 4.09 (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. .if !\nF .nr F 0
  58. .if \nF>0 \{\
  59. . de IX
  60. . tm Index:\\$1\t\\n%\t"\\$2"
  61. ..
  62. . if !\nF==2 \{\
  63. . nr % 0
  64. . nr F 2
  65. . \}
  66. .\}
  67. .\"
  68. .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
  69. .\" Fear. Run. Save yourself. No user-serviceable parts.
  70. . \" fudge factors for nroff and troff
  71. .if n \{\
  72. . ds #H 0
  73. . ds #V .8m
  74. . ds #F .3m
  75. . ds #[ \f1
  76. . ds #] \fP
  77. .\}
  78. .if t \{\
  79. . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
  80. . ds #V .6m
  81. . ds #F 0
  82. . ds #[ \&
  83. . ds #] \&
  84. .\}
  85. . \" simple accents for nroff and troff
  86. .if n \{\
  87. . ds ' \&
  88. . ds ` \&
  89. . ds ^ \&
  90. . ds , \&
  91. . ds ~ ~
  92. . ds /
  93. .\}
  94. .if t \{\
  95. . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
  96. . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
  97. . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
  98. . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
  99. . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
  100. . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
  101. .\}
  102. . \" troff and (daisy-wheel) nroff accents
  103. .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
  104. .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
  105. .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
  106. .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
  107. .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
  108. .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
  109. .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
  110. .ds ae a\h'-(\w'a'u*4/10)'e
  111. .ds Ae A\h'-(\w'A'u*4/10)'E
  112. . \" corrections for vroff
  113. .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
  114. .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
  115. . \" for low resolution devices (crt and lpr)
  116. .if \n(.H>23 .if \n(.V>19 \
  117. \{\
  118. . ds : e
  119. . ds 8 ss
  120. . ds o a
  121. . ds d- d\h'-1'\(ga
  122. . ds D- D\h'-1'\(hy
  123. . ds th \o'bp'
  124. . ds Th \o'LP'
  125. . ds ae ae
  126. . ds Ae AE
  127. .\}
  128. .rm #[ #] #H #V #F C
  129. .\" ========================================================================
  130. .\"
  131. .IX Title "READELF 1"
  132. .TH READELF 1 "2021-07-02" "binutils-2.36.1" "GNU Development Tools"
  133. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  134. .\" way too many mistakes in technical documents.
  135. .if n .ad l
  136. .nh
  137. .SH "NAME"
  138. readelf \- display information about ELF files
  139. .SH "SYNOPSIS"
  140. .IX Header "SYNOPSIS"
  141. readelf [\fB\-a\fR|\fB\-\-all\fR]
  142. [\fB\-h\fR|\fB\-\-file\-header\fR]
  143. [\fB\-l\fR|\fB\-\-program\-headers\fR|\fB\-\-segments\fR]
  144. [\fB\-S\fR|\fB\-\-section\-headers\fR|\fB\-\-sections\fR]
  145. [\fB\-g\fR|\fB\-\-section\-groups\fR]
  146. [\fB\-t\fR|\fB\-\-section\-details\fR]
  147. [\fB\-e\fR|\fB\-\-headers\fR]
  148. [\fB\-s\fR|\fB\-\-syms\fR|\fB\-\-symbols\fR]
  149. [\fB\-\-dyn\-syms\fR|\fB\-\-lto\-syms\fR]
  150. [\fB\-\-demangle\fR\fI=style\fR|\fB\-\-no\-demangle\fR]
  151. [\fB\-\-recurse\-limit\fR|\fB\-\-no\-recurse\-limit\fR]
  152. [\fB\-n\fR|\fB\-\-notes\fR]
  153. [\fB\-r\fR|\fB\-\-relocs\fR]
  154. [\fB\-u\fR|\fB\-\-unwind\fR]
  155. [\fB\-d\fR|\fB\-\-dynamic\fR]
  156. [\fB\-V\fR|\fB\-\-version\-info\fR]
  157. [\fB\-A\fR|\fB\-\-arch\-specific\fR]
  158. [\fB\-D\fR|\fB\-\-use\-dynamic\fR]
  159. [\fB\-L\fR|\fB\-\-lint\fR|\fB\-\-enable\-checks\fR]
  160. [\fB\-x\fR <number or name>|\fB\-\-hex\-dump=\fR<number or name>]
  161. [\fB\-p\fR <number or name>|\fB\-\-string\-dump=\fR<number or name>]
  162. [\fB\-R\fR <number or name>|\fB\-\-relocated\-dump=\fR<number or name>]
  163. [\fB\-z\fR|\fB\-\-decompress\fR]
  164. [\fB\-c\fR|\fB\-\-archive\-index\fR]
  165. [\fB\-w[lLiaprmfFsoORtUuTgAckK]\fR|
  166. \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]]
  167. [\fB\-\-dwarf\-depth=\fR\fIn\fR]
  168. [\fB\-\-dwarf\-start=\fR\fIn\fR]
  169. [\fB\-\-ctf=\fR\fIsection\fR]
  170. [\fB\-\-ctf\-parent=\fR\fIsection\fR]
  171. [\fB\-\-ctf\-symbols=\fR\fIsection\fR]
  172. [\fB\-\-ctf\-strings=\fR\fIsection\fR]
  173. [\fB\-I\fR|\fB\-\-histogram\fR]
  174. [\fB\-v\fR|\fB\-\-version\fR]
  175. [\fB\-W\fR|\fB\-\-wide\fR]
  176. [\fB\-T\fR|\fB\-\-silent\-truncation\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, preceded 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 preceded 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\-\-lto\-syms\fR" 4
  276. .IX Item "--lto-syms"
  277. Displays the contents of any \s-1LTO\s0 symbol tables in the file.
  278. .IP "\fB\-C\fR" 4
  279. .IX Item "-C"
  280. .PD 0
  281. .IP "\fB\-\-demangle[=\fR\fIstyle\fR\fB]\fR" 4
  282. .IX Item "--demangle[=style]"
  283. .PD
  284. Decode (\fIdemangle\fR) low-level symbol names into user-level names.
  285. This makes \*(C+ function names readable. Different compilers have
  286. different mangling styles. The optional demangling style argument can
  287. be used to choose an appropriate demangling style for your
  288. compiler.
  289. .IP "\fB\-\-no\-demangle\fR" 4
  290. .IX Item "--no-demangle"
  291. Do not demangle low-level symbol names. This is the default.
  292. .IP "\fB\-\-recurse\-limit\fR" 4
  293. .IX Item "--recurse-limit"
  294. .PD 0
  295. .IP "\fB\-\-no\-recurse\-limit\fR" 4
  296. .IX Item "--no-recurse-limit"
  297. .IP "\fB\-\-recursion\-limit\fR" 4
  298. .IX Item "--recursion-limit"
  299. .IP "\fB\-\-no\-recursion\-limit\fR" 4
  300. .IX Item "--no-recursion-limit"
  301. .PD
  302. Enables or disables a limit on the amount of recursion performed
  303. whilst demangling strings. Since the name mangling formats allow for
  304. an infinite level of recursion it is possible to create strings whose
  305. decoding will exhaust the amount of stack space available on the host
  306. machine, triggering a memory fault. The limit tries to prevent this
  307. from happening by restricting recursion to 2048 levels of nesting.
  308. .Sp
  309. The default is for this limit to be enabled, but disabling it may be
  310. necessary in order to demangle truly complicated names. Note however
  311. that if the recursion limit is disabled then stack exhaustion is
  312. possible and any bug reports about such an event will be rejected.
  313. .IP "\fB\-e\fR" 4
  314. .IX Item "-e"
  315. .PD 0
  316. .IP "\fB\-\-headers\fR" 4
  317. .IX Item "--headers"
  318. .PD
  319. Display all the headers in the file. Equivalent to \fB\-h \-l \-S\fR.
  320. .IP "\fB\-n\fR" 4
  321. .IX Item "-n"
  322. .PD 0
  323. .IP "\fB\-\-notes\fR" 4
  324. .IX Item "--notes"
  325. .PD
  326. Displays the contents of the \s-1NOTE\s0 segments and/or sections, if any.
  327. .IP "\fB\-r\fR" 4
  328. .IX Item "-r"
  329. .PD 0
  330. .IP "\fB\-\-relocs\fR" 4
  331. .IX Item "--relocs"
  332. .PD
  333. Displays the contents of the file's relocation section, if it has one.
  334. .IP "\fB\-u\fR" 4
  335. .IX Item "-u"
  336. .PD 0
  337. .IP "\fB\-\-unwind\fR" 4
  338. .IX Item "--unwind"
  339. .PD
  340. Displays the contents of the file's unwind section, if it has one. Only
  341. the unwind sections for \s-1IA64 ELF\s0 files, as well as \s-1ARM\s0 unwind tables
  342. (\f(CW\*(C`.ARM.exidx\*(C'\fR / \f(CW\*(C`.ARM.extab\*(C'\fR) are currently supported. If
  343. support is not yet implemented for your architecture you could try
  344. dumping the contents of the \fI.eh_frames\fR section using the
  345. \&\fB\-\-debug\-dump=frames\fR or \fB\-\-debug\-dump=frames\-interp\fR
  346. options.
  347. .IP "\fB\-d\fR" 4
  348. .IX Item "-d"
  349. .PD 0
  350. .IP "\fB\-\-dynamic\fR" 4
  351. .IX Item "--dynamic"
  352. .PD
  353. Displays the contents of the file's dynamic section, if it has one.
  354. .IP "\fB\-V\fR" 4
  355. .IX Item "-V"
  356. .PD 0
  357. .IP "\fB\-\-version\-info\fR" 4
  358. .IX Item "--version-info"
  359. .PD
  360. Displays the contents of the version sections in the file, it they
  361. exist.
  362. .IP "\fB\-A\fR" 4
  363. .IX Item "-A"
  364. .PD 0
  365. .IP "\fB\-\-arch\-specific\fR" 4
  366. .IX Item "--arch-specific"
  367. .PD
  368. Displays architecture-specific information in the file, if there
  369. is any.
  370. .IP "\fB\-D\fR" 4
  371. .IX Item "-D"
  372. .PD 0
  373. .IP "\fB\-\-use\-dynamic\fR" 4
  374. .IX Item "--use-dynamic"
  375. .PD
  376. When displaying symbols, this option makes \fBreadelf\fR use the
  377. symbol hash tables in the file's dynamic section, rather than the
  378. symbol table sections.
  379. .Sp
  380. When displaying relocations, this option makes \fBreadelf\fR
  381. display the dynamic relocations rather than the static relocations.
  382. .IP "\fB\-L\fR" 4
  383. .IX Item "-L"
  384. .PD 0
  385. .IP "\fB\-\-lint\fR" 4
  386. .IX Item "--lint"
  387. .IP "\fB\-\-enable\-checks\fR" 4
  388. .IX Item "--enable-checks"
  389. .PD
  390. Displays warning messages about possible problems with the file(s)
  391. being examined. If used on its own then all of the contents of the
  392. file(s) will be examined. If used with one of the dumping options
  393. then the warning messages will only be produced for the things being
  394. displayed.
  395. .IP "\fB\-x <number or name>\fR" 4
  396. .IX Item "-x <number or name>"
  397. .PD 0
  398. .IP "\fB\-\-hex\-dump=<number or name>\fR" 4
  399. .IX Item "--hex-dump=<number or name>"
  400. .PD
  401. Displays the contents of the indicated section as a hexadecimal bytes.
  402. A number identifies a particular section by index in the section table;
  403. any other string identifies all sections with that name in the object file.
  404. .IP "\fB\-R <number or name>\fR" 4
  405. .IX Item "-R <number or name>"
  406. .PD 0
  407. .IP "\fB\-\-relocated\-dump=<number or name>\fR" 4
  408. .IX Item "--relocated-dump=<number or name>"
  409. .PD
  410. Displays the contents of the indicated section as a hexadecimal
  411. bytes. A number identifies a particular section by index in the
  412. section table; any other string identifies all sections with that name
  413. in the object file. The contents of the section will be relocated
  414. before they are displayed.
  415. .IP "\fB\-p <number or name>\fR" 4
  416. .IX Item "-p <number or name>"
  417. .PD 0
  418. .IP "\fB\-\-string\-dump=<number or name>\fR" 4
  419. .IX Item "--string-dump=<number or name>"
  420. .PD
  421. Displays the contents of the indicated section as printable strings.
  422. A number identifies a particular section by index in the section table;
  423. any other string identifies all sections with that name in the object file.
  424. .IP "\fB\-z\fR" 4
  425. .IX Item "-z"
  426. .PD 0
  427. .IP "\fB\-\-decompress\fR" 4
  428. .IX Item "--decompress"
  429. .PD
  430. Requests that the section(s) being dumped by \fBx\fR, \fBR\fR or
  431. \&\fBp\fR options are decompressed before being displayed. If the
  432. section(s) are not compressed then they are displayed as is.
  433. .IP "\fB\-c\fR" 4
  434. .IX Item "-c"
  435. .PD 0
  436. .IP "\fB\-\-archive\-index\fR" 4
  437. .IX Item "--archive-index"
  438. .PD
  439. Displays the file symbol index information contained in the header part
  440. of binary archives. Performs the same function as the \fBt\fR
  441. command to \fBar\fR, but without using the \s-1BFD\s0 library.
  442. .IP "\fB\-w[lLiaprmfFsOoRtUuTgAckK]\fR" 4
  443. .IX Item "-w[lLiaprmfFsOoRtUuTgAckK]"
  444. .PD 0
  445. .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
  446. .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]"
  447. .PD
  448. Displays the contents of the \s-1DWARF\s0 debug sections in the file, if any
  449. are present. Compressed debug sections are automatically decompressed
  450. (temporarily) before they are displayed. If one or more of the
  451. optional letters or words follows the switch then only those type(s)
  452. of data will be dumped. The letters and words refer to the following
  453. information:
  454. .RS 4
  455. .ie n .IP """a""" 4
  456. .el .IP "\f(CWa\fR" 4
  457. .IX Item "a"
  458. .PD 0
  459. .ie n .IP """=abbrev""" 4
  460. .el .IP "\f(CW=abbrev\fR" 4
  461. .IX Item "=abbrev"
  462. .PD
  463. Displays the contents of the \fB.debug_abbrev\fR section.
  464. .ie n .IP """A""" 4
  465. .el .IP "\f(CWA\fR" 4
  466. .IX Item "A"
  467. .PD 0
  468. .ie n .IP """=addr""" 4
  469. .el .IP "\f(CW=addr\fR" 4
  470. .IX Item "=addr"
  471. .PD
  472. Displays the contents of the \fB.debug_addr\fR section.
  473. .ie n .IP """c""" 4
  474. .el .IP "\f(CWc\fR" 4
  475. .IX Item "c"
  476. .PD 0
  477. .ie n .IP """=cu_index""" 4
  478. .el .IP "\f(CW=cu_index\fR" 4
  479. .IX Item "=cu_index"
  480. .PD
  481. Displays the contents of the \fB.debug_cu_index\fR and/or
  482. \&\fB.debug_tu_index\fR sections.
  483. .ie n .IP """f""" 4
  484. .el .IP "\f(CWf\fR" 4
  485. .IX Item "f"
  486. .PD 0
  487. .ie n .IP """=frames""" 4
  488. .el .IP "\f(CW=frames\fR" 4
  489. .IX Item "=frames"
  490. .PD
  491. Display the raw contents of a \fB.debug_frame\fR section.
  492. .ie n .IP """F""" 4
  493. .el .IP "\f(CWF\fR" 4
  494. .IX Item "F"
  495. .PD 0
  496. .ie n .IP """=frame\-interp""" 4
  497. .el .IP "\f(CW=frame\-interp\fR" 4
  498. .IX Item "=frame-interp"
  499. .PD
  500. Display the interpreted contents of a \fB.debug_frame\fR section.
  501. .ie n .IP """g""" 4
  502. .el .IP "\f(CWg\fR" 4
  503. .IX Item "g"
  504. .PD 0
  505. .ie n .IP """=gdb_index""" 4
  506. .el .IP "\f(CW=gdb_index\fR" 4
  507. .IX Item "=gdb_index"
  508. .PD
  509. Displays the contents of the \fB.gdb_index\fR and/or
  510. \&\fB.debug_names\fR sections.
  511. .ie n .IP """i""" 4
  512. .el .IP "\f(CWi\fR" 4
  513. .IX Item "i"
  514. .PD 0
  515. .ie n .IP """=info""" 4
  516. .el .IP "\f(CW=info\fR" 4
  517. .IX Item "=info"
  518. .PD
  519. Displays the contents of the \fB.debug_info\fR section. Note: the
  520. output from this option can also be restricted by the use of the
  521. \&\fB\-\-dwarf\-depth\fR and \fB\-\-dwarf\-start\fR options.
  522. .ie n .IP """k""" 4
  523. .el .IP "\f(CWk\fR" 4
  524. .IX Item "k"
  525. .PD 0
  526. .ie n .IP """=links""" 4
  527. .el .IP "\f(CW=links\fR" 4
  528. .IX Item "=links"
  529. .PD
  530. Displays the contents of the \fB.gnu_debuglink\fR and/or
  531. \&\fB.gnu_debugaltlink\fR sections. Also displays any links to
  532. separate dwarf object files (dwo), if they are specified by the
  533. DW_AT_GNU_dwo_name or DW_AT_dwo_name attributes in the
  534. \&\fB.debug_info\fR section.
  535. .ie n .IP """K""" 4
  536. .el .IP "\f(CWK\fR" 4
  537. .IX Item "K"
  538. .PD 0
  539. .ie n .IP """=follow\-links""" 4
  540. .el .IP "\f(CW=follow\-links\fR" 4
  541. .IX Item "=follow-links"
  542. .PD
  543. Display the contents of any selected debug sections that are found in
  544. linked, separate debug info file(s). This can result in multiple
  545. versions of the same debug section being displayed if it exists in
  546. more than one file.
  547. .Sp
  548. In addition, when displaying \s-1DWARF\s0 attributes, if a form is found that
  549. references the separate debug info file, then the referenced contents
  550. will also be displayed.
  551. .ie n .IP """l""" 4
  552. .el .IP "\f(CWl\fR" 4
  553. .IX Item "l"
  554. .PD 0
  555. .ie n .IP """=rawline""" 4
  556. .el .IP "\f(CW=rawline\fR" 4
  557. .IX Item "=rawline"
  558. .PD
  559. Displays the contents of the \fB.debug_line\fR section in a raw
  560. format.
  561. .ie n .IP """L""" 4
  562. .el .IP "\f(CWL\fR" 4
  563. .IX Item "L"
  564. .PD 0
  565. .ie n .IP """=decodedline""" 4
  566. .el .IP "\f(CW=decodedline\fR" 4
  567. .IX Item "=decodedline"
  568. .PD
  569. Displays the interpreted contents of the \fB.debug_line\fR section.
  570. .ie n .IP """m""" 4
  571. .el .IP "\f(CWm\fR" 4
  572. .IX Item "m"
  573. .PD 0
  574. .ie n .IP """=macro""" 4
  575. .el .IP "\f(CW=macro\fR" 4
  576. .IX Item "=macro"
  577. .PD
  578. Displays the contents of the \fB.debug_macro\fR and/or
  579. \&\fB.debug_macinfo\fR sections.
  580. .ie n .IP """o""" 4
  581. .el .IP "\f(CWo\fR" 4
  582. .IX Item "o"
  583. .PD 0
  584. .ie n .IP """=loc""" 4
  585. .el .IP "\f(CW=loc\fR" 4
  586. .IX Item "=loc"
  587. .PD
  588. Displays the contents of the \fB.debug_loc\fR and/or
  589. \&\fB.debug_loclists\fR sections.
  590. .ie n .IP """O""" 4
  591. .el .IP "\f(CWO\fR" 4
  592. .IX Item "O"
  593. .PD 0
  594. .ie n .IP """=str\-offsets""" 4
  595. .el .IP "\f(CW=str\-offsets\fR" 4
  596. .IX Item "=str-offsets"
  597. .PD
  598. Displays the contents of the \fB.debug_str_offsets\fR section.
  599. .ie n .IP """p""" 4
  600. .el .IP "\f(CWp\fR" 4
  601. .IX Item "p"
  602. .PD 0
  603. .ie n .IP """=pubnames""" 4
  604. .el .IP "\f(CW=pubnames\fR" 4
  605. .IX Item "=pubnames"
  606. .PD
  607. Displays the contents of the \fB.debug_pubnames\fR and/or
  608. \&\fB.debug_gnu_pubnames\fR sections.
  609. .ie n .IP """r""" 4
  610. .el .IP "\f(CWr\fR" 4
  611. .IX Item "r"
  612. .PD 0
  613. .ie n .IP """=aranges""" 4
  614. .el .IP "\f(CW=aranges\fR" 4
  615. .IX Item "=aranges"
  616. .PD
  617. Displays the contents of the \fB.debug_aranges\fR section.
  618. .ie n .IP """R""" 4
  619. .el .IP "\f(CWR\fR" 4
  620. .IX Item "R"
  621. .PD 0
  622. .ie n .IP """=Ranges""" 4
  623. .el .IP "\f(CW=Ranges\fR" 4
  624. .IX Item "=Ranges"
  625. .PD
  626. Displays the contents of the \fB.debug_ranges\fR and/or
  627. \&\fB.debug_rnglists\fR sections.
  628. .ie n .IP """s""" 4
  629. .el .IP "\f(CWs\fR" 4
  630. .IX Item "s"
  631. .PD 0
  632. .ie n .IP """=str""" 4
  633. .el .IP "\f(CW=str\fR" 4
  634. .IX Item "=str"
  635. .PD
  636. Displays the contents of the \fB.debug_str\fR, \fB.debug_line_str\fR
  637. and/or \fB.debug_str_offsets\fR sections.
  638. .ie n .IP """t""" 4
  639. .el .IP "\f(CWt\fR" 4
  640. .IX Item "t"
  641. .PD 0
  642. .ie n .IP """=pubtype""" 4
  643. .el .IP "\f(CW=pubtype\fR" 4
  644. .IX Item "=pubtype"
  645. .PD
  646. Displays the contents of the \fB.debug_pubtypes\fR and/or
  647. \&\fB.debug_gnu_pubtypes\fR sections.
  648. .ie n .IP """T""" 4
  649. .el .IP "\f(CWT\fR" 4
  650. .IX Item "T"
  651. .PD 0
  652. .ie n .IP """=trace_aranges""" 4
  653. .el .IP "\f(CW=trace_aranges\fR" 4
  654. .IX Item "=trace_aranges"
  655. .PD
  656. Displays the contents of the \fB.trace_aranges\fR section.
  657. .ie n .IP """u""" 4
  658. .el .IP "\f(CWu\fR" 4
  659. .IX Item "u"
  660. .PD 0
  661. .ie n .IP """=trace_abbrev""" 4
  662. .el .IP "\f(CW=trace_abbrev\fR" 4
  663. .IX Item "=trace_abbrev"
  664. .PD
  665. Displays the contents of the \fB.trace_abbrev\fR section.
  666. .ie n .IP """U""" 4
  667. .el .IP "\f(CWU\fR" 4
  668. .IX Item "U"
  669. .PD 0
  670. .ie n .IP """=trace_info""" 4
  671. .el .IP "\f(CW=trace_info\fR" 4
  672. .IX Item "=trace_info"
  673. .PD
  674. Displays the contents of the \fB.trace_info\fR section.
  675. .RE
  676. .RS 4
  677. .Sp
  678. Note: displaying the contents of \fB.debug_static_funcs\fR,
  679. \&\fB.debug_static_vars\fR and \fBdebug_weaknames\fR sections is not
  680. currently supported.
  681. .RE
  682. .IP "\fB\-\-dwarf\-depth=\fR\fIn\fR" 4
  683. .IX Item "--dwarf-depth=n"
  684. Limit the dump of the \f(CW\*(C`.debug_info\*(C'\fR section to \fIn\fR children.
  685. This is only useful with \fB\-\-debug\-dump=info\fR. The default is
  686. to print all DIEs; the special value 0 for \fIn\fR will also have this
  687. effect.
  688. .Sp
  689. With a non-zero value for \fIn\fR, DIEs at or deeper than \fIn\fR
  690. levels will not be printed. The range for \fIn\fR is zero-based.
  691. .IP "\fB\-\-dwarf\-start=\fR\fIn\fR" 4
  692. .IX Item "--dwarf-start=n"
  693. Print only DIEs beginning with the \s-1DIE\s0 numbered \fIn\fR. This is only
  694. useful with \fB\-\-debug\-dump=info\fR.
  695. .Sp
  696. If specified, this option will suppress printing of any header
  697. information and all DIEs before the \s-1DIE\s0 numbered \fIn\fR. Only
  698. siblings and children of the specified \s-1DIE\s0 will be printed.
  699. .Sp
  700. This can be used in conjunction with \fB\-\-dwarf\-depth\fR.
  701. .IP "\fB\-\-ctf=\fR\fIsection\fR" 4
  702. .IX Item "--ctf=section"
  703. Display the contents of the specified \s-1CTF\s0 section. \s-1CTF\s0 sections themselves
  704. contain many subsections, all of which are displayed in order.
  705. .IP "\fB\-\-ctf\-parent=\fR\fIsection\fR" 4
  706. .IX Item "--ctf-parent=section"
  707. Specify the name of another section from which the \s-1CTF\s0 dictionary can inherit
  708. types. (If none is specified, we assume the \s-1CTF\s0 dictionary inherits types
  709. from the default-named member of the archive contained within this section.)
  710. .IP "\fB\-\-ctf\-symbols=\fR\fIsection\fR" 4
  711. .IX Item "--ctf-symbols=section"
  712. .PD 0
  713. .IP "\fB\-\-ctf\-strings=\fR\fIsection\fR" 4
  714. .IX Item "--ctf-strings=section"
  715. .PD
  716. Specify the name of another section from which the \s-1CTF\s0 file can inherit
  717. strings and symbols. By default, the \f(CW\*(C`.symtab\*(C'\fR and its linked
  718. string table are used.
  719. .Sp
  720. If either of \fB\-\-ctf\-symbols\fR or \fB\-\-ctf\-strings\fR is specified, the
  721. other must be specified as well.
  722. .IP "\fB\-I\fR" 4
  723. .IX Item "-I"
  724. .PD 0
  725. .IP "\fB\-\-histogram\fR" 4
  726. .IX Item "--histogram"
  727. .PD
  728. Display a histogram of bucket list lengths when displaying the contents
  729. of the symbol tables.
  730. .IP "\fB\-v\fR" 4
  731. .IX Item "-v"
  732. .PD 0
  733. .IP "\fB\-\-version\fR" 4
  734. .IX Item "--version"
  735. .PD
  736. Display the version number of readelf.
  737. .IP "\fB\-W\fR" 4
  738. .IX Item "-W"
  739. .PD 0
  740. .IP "\fB\-\-wide\fR" 4
  741. .IX Item "--wide"
  742. .PD
  743. Don't break output lines to fit into 80 columns. By default
  744. \&\fBreadelf\fR breaks section header and segment listing lines for
  745. 64\-bit \s-1ELF\s0 files, so that they fit into 80 columns. This option causes
  746. \&\fBreadelf\fR to print each section header resp. each segment one a
  747. single line, which is far more readable on terminals wider than 80 columns.
  748. .IP "\fB\-T\fR" 4
  749. .IX Item "-T"
  750. .PD 0
  751. .IP "\fB\-\-silent\-truncation\fR" 4
  752. .IX Item "--silent-truncation"
  753. .PD
  754. Normally when readelf is displaying a symbol name, and it has to
  755. truncate the name to fit into an 80 column display, it will add a
  756. suffix of \f(CW\*(C`[...]\*(C'\fR to the name. This command line option
  757. disables this behaviour, allowing 5 more characters of the name to be
  758. displayed and restoring the old behaviour of readelf (prior to release
  759. 2.35).
  760. .IP "\fB\-H\fR" 4
  761. .IX Item "-H"
  762. .PD 0
  763. .IP "\fB\-\-help\fR" 4
  764. .IX Item "--help"
  765. .PD
  766. Display the command-line options understood by \fBreadelf\fR.
  767. .IP "\fB@\fR\fIfile\fR" 4
  768. .IX Item "@file"
  769. Read command-line options from \fIfile\fR. The options read are
  770. inserted in place of the original @\fIfile\fR option. If \fIfile\fR
  771. does not exist, or cannot be read, then the option will be treated
  772. literally, and not removed.
  773. .Sp
  774. Options in \fIfile\fR are separated by whitespace. A whitespace
  775. character may be included in an option by surrounding the entire
  776. option in either single or double quotes. Any character (including a
  777. backslash) may be included by prefixing the character to be included
  778. with a backslash. The \fIfile\fR may itself contain additional
  779. @\fIfile\fR options; any such options will be processed recursively.
  780. .SH "SEE ALSO"
  781. .IX Header "SEE ALSO"
  782. \&\fIobjdump\fR\|(1), and the Info entries for \fIbinutils\fR.
  783. .SH "COPYRIGHT"
  784. .IX Header "COPYRIGHT"
  785. Copyright (c) 1991\-2021 Free Software Foundation, Inc.
  786. .PP
  787. Permission is granted to copy, distribute and/or modify this document
  788. under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3
  789. or any later version published by the Free Software Foundation;
  790. with no Invariant Sections, with no Front-Cover Texts, and with no
  791. Back-Cover Texts. A copy of the license is included in the
  792. section entitled \*(L"\s-1GNU\s0 Free Documentation License\*(R".