readelf.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1991-2020 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3
  6. or any later version published by the Free Software Foundation;
  7. with no Invariant Sections, with no Front-Cover Texts, and with no
  8. Back-Cover Texts. A copy of the license is included in the
  9. section entitled "GNU Free Documentation License".
  10. -->
  11. <!-- Created by GNU Texinfo 5.1, http://www.gnu.org/software/texinfo/ -->
  12. <head>
  13. <title>GNU Binary Utilities: readelf</title>
  14. <meta name="description" content="GNU Binary Utilities: readelf">
  15. <meta name="keywords" content="GNU Binary Utilities: readelf">
  16. <meta name="resource-type" content="document">
  17. <meta name="distribution" content="global">
  18. <meta name="Generator" content="makeinfo">
  19. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  20. <link href="index.html#Top" rel="start" title="Top">
  21. <link href="Binutils-Index.html#Binutils-Index" rel="index" title="Binutils Index">
  22. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  23. <link href="index.html#Top" rel="up" title="Top">
  24. <link href="elfedit.html#elfedit" rel="next" title="elfedit">
  25. <link href="def-file-format.html#def-file-format" rel="previous" title="def file format">
  26. <style type="text/css">
  27. <!--
  28. a.summary-letter {text-decoration: none}
  29. blockquote.smallquotation {font-size: smaller}
  30. div.display {margin-left: 3.2em}
  31. div.example {margin-left: 3.2em}
  32. div.indentedblock {margin-left: 3.2em}
  33. div.lisp {margin-left: 3.2em}
  34. div.smalldisplay {margin-left: 3.2em}
  35. div.smallexample {margin-left: 3.2em}
  36. div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
  37. div.smalllisp {margin-left: 3.2em}
  38. kbd {font-style:oblique}
  39. pre.display {font-family: inherit}
  40. pre.format {font-family: inherit}
  41. pre.menu-comment {font-family: serif}
  42. pre.menu-preformatted {font-family: serif}
  43. pre.smalldisplay {font-family: inherit; font-size: smaller}
  44. pre.smallexample {font-size: smaller}
  45. pre.smallformat {font-family: inherit; font-size: smaller}
  46. pre.smalllisp {font-size: smaller}
  47. span.nocodebreak {white-space:nowrap}
  48. span.nolinebreak {white-space:nowrap}
  49. span.roman {font-family:serif; font-weight:normal}
  50. span.sansserif {font-family:sans-serif; font-weight:normal}
  51. ul.no-bullet {list-style: none}
  52. -->
  53. </style>
  54. </head>
  55. <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
  56. <a name="readelf"></a>
  57. <div class="header">
  58. <p>
  59. Next: <a href="elfedit.html#elfedit" accesskey="n" rel="next">elfedit</a>, Previous: <a href="dlltool.html#dlltool" accesskey="p" rel="previous">dlltool</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Binutils-Index.html#Binutils-Index" title="Index" rel="index">Index</a>]</p>
  60. </div>
  61. <hr>
  62. <a name="readelf-1"></a>
  63. <h2 class="chapter">14 readelf</h2>
  64. <a name="index-ELF-file-information"></a>
  65. <a name="index-readelf"></a>
  66. <div class="smallexample">
  67. <pre class="smallexample">readelf [<samp>-a</samp>|<samp>--all</samp>]
  68. [<samp>-h</samp>|<samp>--file-header</samp>]
  69. [<samp>-l</samp>|<samp>--program-headers</samp>|<samp>--segments</samp>]
  70. [<samp>-S</samp>|<samp>--section-headers</samp>|<samp>--sections</samp>]
  71. [<samp>-g</samp>|<samp>--section-groups</samp>]
  72. [<samp>-t</samp>|<samp>--section-details</samp>]
  73. [<samp>-e</samp>|<samp>--headers</samp>]
  74. [<samp>-s</samp>|<samp>--syms</samp>|<samp>--symbols</samp>]
  75. [<samp>--dyn-syms</samp>]
  76. [<samp>-n</samp>|<samp>--notes</samp>]
  77. [<samp>-r</samp>|<samp>--relocs</samp>]
  78. [<samp>-u</samp>|<samp>--unwind</samp>]
  79. [<samp>-d</samp>|<samp>--dynamic</samp>]
  80. [<samp>-V</samp>|<samp>--version-info</samp>]
  81. [<samp>-A</samp>|<samp>--arch-specific</samp>]
  82. [<samp>-D</samp>|<samp>--use-dynamic</samp>]
  83. [<samp>-L</samp>|<samp>--lint</samp>|<samp>--enable-checks</samp>]
  84. [<samp>-x</samp> &lt;number or name&gt;|<samp>--hex-dump=</samp>&lt;number or name&gt;]
  85. [<samp>-p</samp> &lt;number or name&gt;|<samp>--string-dump=</samp>&lt;number or name&gt;]
  86. [<samp>-R</samp> &lt;number or name&gt;|<samp>--relocated-dump=</samp>&lt;number or name&gt;]
  87. [<samp>-z</samp>|<samp>--decompress</samp>]
  88. [<samp>-c</samp>|<samp>--archive-index</samp>]
  89. [<samp>-w[lLiaprmfFsoORtUuTgAckK]</samp>|
  90. <samp>--debug-dump</samp>[=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]]
  91. [<samp>--dwarf-depth=<var>n</var></samp>]
  92. [<samp>--dwarf-start=<var>n</var></samp>]
  93. [<samp>--ctf=</samp><var>section</var>]
  94. [<samp>--ctf-parent=</samp><var>section</var>]
  95. [<samp>--ctf-symbols=</samp><var>section</var>]
  96. [<samp>--ctf-strings=</samp><var>section</var>]
  97. [<samp>-I</samp>|<samp>--histogram</samp>]
  98. [<samp>-v</samp>|<samp>--version</samp>]
  99. [<samp>-W</samp>|<samp>--wide</samp>]
  100. [<samp>-T</samp>|<samp>--silent-truncation</samp>]
  101. [<samp>-H</samp>|<samp>--help</samp>]
  102. <var>elffile</var>&hellip;
  103. </pre></div>
  104. <p><code>readelf</code> displays information about one or more ELF format object
  105. files. The options control what particular information to display.
  106. </p>
  107. <p><var>elffile</var>&hellip; are the object files to be examined. 32-bit and
  108. 64-bit ELF files are supported, as are archives containing ELF files.
  109. </p>
  110. <p>This program performs a similar function to <code>objdump</code> but it
  111. goes into more detail and it exists independently of the <small>BFD</small>
  112. library, so if there is a bug in <small>BFD</small> then readelf will not be
  113. affected.
  114. </p>
  115. <p>The long and short forms of options, shown here as alternatives, are
  116. equivalent. At least one option besides &lsquo;<samp>-v</samp>&rsquo; or &lsquo;<samp>-H</samp>&rsquo; must be
  117. given.
  118. </p>
  119. <dl compact="compact">
  120. <dt><code>-a</code></dt>
  121. <dt><code>--all</code></dt>
  122. <dd><p>Equivalent to specifying <samp>--file-header</samp>,
  123. <samp>--program-headers</samp>, <samp>--sections</samp>, <samp>--symbols</samp>,
  124. <samp>--relocs</samp>, <samp>--dynamic</samp>, <samp>--notes</samp>,
  125. <samp>--version-info</samp>, <samp>--arch-specific</samp>, <samp>--unwind</samp>,
  126. <samp>--section-groups</samp> and <samp>--histogram</samp>.
  127. </p>
  128. <p>Note - this option does not enable <samp>--use-dynamic</samp> itself, so
  129. if that option is not present on the command line then dynamic symbols
  130. and dynamic relocs will not be displayed.
  131. </p>
  132. </dd>
  133. <dt><code>-h</code></dt>
  134. <dt><code>--file-header</code></dt>
  135. <dd><a name="index-ELF-file-header-information"></a>
  136. <p>Displays the information contained in the ELF header at the start of the
  137. file.
  138. </p>
  139. </dd>
  140. <dt><code>-l</code></dt>
  141. <dt><code>--program-headers</code></dt>
  142. <dt><code>--segments</code></dt>
  143. <dd><a name="index-ELF-program-header-information"></a>
  144. <a name="index-ELF-segment-information"></a>
  145. <p>Displays the information contained in the file&rsquo;s segment headers, if it
  146. has any.
  147. </p>
  148. </dd>
  149. <dt><code>-S</code></dt>
  150. <dt><code>--sections</code></dt>
  151. <dt><code>--section-headers</code></dt>
  152. <dd><a name="index-ELF-section-information"></a>
  153. <p>Displays the information contained in the file&rsquo;s section headers, if it
  154. has any.
  155. </p>
  156. </dd>
  157. <dt><code>-g</code></dt>
  158. <dt><code>--section-groups</code></dt>
  159. <dd><a name="index-ELF-section-group-information"></a>
  160. <p>Displays the information contained in the file&rsquo;s section groups, if it
  161. has any.
  162. </p>
  163. </dd>
  164. <dt><code>-t</code></dt>
  165. <dt><code>--section-details</code></dt>
  166. <dd><a name="index-ELF-section-information-1"></a>
  167. <p>Displays the detailed section information. Implies <samp>-S</samp>.
  168. </p>
  169. </dd>
  170. <dt><code>-s</code></dt>
  171. <dt><code>--symbols</code></dt>
  172. <dt><code>--syms</code></dt>
  173. <dd><a name="index-ELF-symbol-table-information"></a>
  174. <p>Displays the entries in symbol table section of the file, if it has one.
  175. If a symbol has version information associated with it then this is
  176. displayed as well. The version string is displayed as a suffix to the
  177. symbol name, preceeded by an @ character. For example
  178. &lsquo;<samp>foo@VER_1</samp>&rsquo;. If the version is the default version to be used
  179. when resolving unversioned references to the symbol then it is
  180. displayed as a suffix preceeded by two @ characters. For example
  181. &lsquo;<samp>foo@@VER_2</samp>&rsquo;.
  182. </p>
  183. </dd>
  184. <dt><code>--dyn-syms</code></dt>
  185. <dd><a name="index-ELF-dynamic-symbol-table-information"></a>
  186. <p>Displays the entries in dynamic symbol table section of the file, if it
  187. has one. The output format is the same as the format used by the
  188. <samp>--syms</samp> option.
  189. </p>
  190. </dd>
  191. <dt><code>-e</code></dt>
  192. <dt><code>--headers</code></dt>
  193. <dd><p>Display all the headers in the file. Equivalent to <samp>-h -l -S</samp>.
  194. </p>
  195. </dd>
  196. <dt><code>-n</code></dt>
  197. <dt><code>--notes</code></dt>
  198. <dd><a name="index-ELF-notes"></a>
  199. <p>Displays the contents of the NOTE segments and/or sections, if any.
  200. </p>
  201. </dd>
  202. <dt><code>-r</code></dt>
  203. <dt><code>--relocs</code></dt>
  204. <dd><a name="index-ELF-reloc-information"></a>
  205. <p>Displays the contents of the file&rsquo;s relocation section, if it has one.
  206. </p>
  207. </dd>
  208. <dt><code>-u</code></dt>
  209. <dt><code>--unwind</code></dt>
  210. <dd><a name="index-unwind-information"></a>
  211. <p>Displays the contents of the file&rsquo;s unwind section, if it has one. Only
  212. the unwind sections for IA64 ELF files, as well as ARM unwind tables
  213. (<code>.ARM.exidx</code> / <code>.ARM.extab</code>) are currently supported. If
  214. support is not yet implemented for your architecture you could try
  215. dumping the contents of the <var>.eh_frames</var> section using the
  216. <samp>--debug-dump=frames</samp> or <samp>--debug-dump=frames-interp</samp>
  217. options.
  218. </p>
  219. </dd>
  220. <dt><code>-d</code></dt>
  221. <dt><code>--dynamic</code></dt>
  222. <dd><a name="index-ELF-dynamic-section-information"></a>
  223. <p>Displays the contents of the file&rsquo;s dynamic section, if it has one.
  224. </p>
  225. </dd>
  226. <dt><code>-V</code></dt>
  227. <dt><code>--version-info</code></dt>
  228. <dd><a name="index-ELF-version-sections-information"></a>
  229. <p>Displays the contents of the version sections in the file, it they
  230. exist.
  231. </p>
  232. </dd>
  233. <dt><code>-A</code></dt>
  234. <dt><code>--arch-specific</code></dt>
  235. <dd><p>Displays architecture-specific information in the file, if there
  236. is any.
  237. </p>
  238. </dd>
  239. <dt><code>-D</code></dt>
  240. <dt><code>--use-dynamic</code></dt>
  241. <dd><p>When displaying symbols, this option makes <code>readelf</code> use the
  242. symbol hash tables in the file&rsquo;s dynamic section, rather than the
  243. symbol table sections.
  244. </p>
  245. <p>When displaying relocations, this option makes <code>readelf</code>
  246. display the dynamic relocations rather than the static relocations.
  247. </p>
  248. </dd>
  249. <dt><code>-L</code></dt>
  250. <dt><code>--lint</code></dt>
  251. <dt><code>--enable-checks</code></dt>
  252. <dd><p>Displays warning messages about possible problems with the file(s)
  253. being examined. If used on its own then all of the contents of the
  254. file(s) will be examined. If used with one of the dumping options
  255. then the warning messages will only be produced for the things being
  256. displayed.
  257. </p>
  258. </dd>
  259. <dt><code>-x &lt;number or name&gt;</code></dt>
  260. <dt><code>--hex-dump=&lt;number or name&gt;</code></dt>
  261. <dd><p>Displays the contents of the indicated section as a hexadecimal bytes.
  262. A number identifies a particular section by index in the section table;
  263. any other string identifies all sections with that name in the object file.
  264. </p>
  265. </dd>
  266. <dt><code>-R &lt;number or name&gt;</code></dt>
  267. <dt><code>--relocated-dump=&lt;number or name&gt;</code></dt>
  268. <dd><p>Displays the contents of the indicated section as a hexadecimal
  269. bytes. A number identifies a particular section by index in the
  270. section table; any other string identifies all sections with that name
  271. in the object file. The contents of the section will be relocated
  272. before they are displayed.
  273. </p>
  274. </dd>
  275. <dt><code>-p &lt;number or name&gt;</code></dt>
  276. <dt><code>--string-dump=&lt;number or name&gt;</code></dt>
  277. <dd><p>Displays the contents of the indicated section as printable strings.
  278. A number identifies a particular section by index in the section table;
  279. any other string identifies all sections with that name in the object file.
  280. </p>
  281. </dd>
  282. <dt><code>-z</code></dt>
  283. <dt><code>--decompress</code></dt>
  284. <dd><p>Requests that the section(s) being dumped by <samp>x</samp>, <samp>R</samp> or
  285. <samp>p</samp> options are decompressed before being displayed. If the
  286. section(s) are not compressed then they are displayed as is.
  287. </p>
  288. </dd>
  289. <dt><code>-c</code></dt>
  290. <dt><code>--archive-index</code></dt>
  291. <dd><a name="index-Archive-file-symbol-index-information"></a>
  292. <p>Displays the file symbol index information contained in the header part
  293. of binary archives. Performs the same function as the <samp>t</samp>
  294. command to <code>ar</code>, but without using the BFD library. See <a href="ar.html#ar">ar</a>.
  295. </p>
  296. </dd>
  297. <dt><code>-w[lLiaprmfFsOoRtUuTgAckK]</code></dt>
  298. <dt><code>--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]</code></dt>
  299. <dd>
  300. <p>Displays the contents of the DWARF debug sections in the file, if any
  301. are present. Compressed debug sections are automatically decompressed
  302. (temporarily) before they are displayed. If one or more of the
  303. optional letters or words follows the switch then only those type(s)
  304. of data will be dumped. The letters and words refer to the following
  305. information:
  306. </p>
  307. <dl compact="compact">
  308. <dt><code>a</code></dt>
  309. <dt><code>=abbrev</code></dt>
  310. <dd><p>Displays the contents of the &lsquo;<samp>.debug_abbrev</samp>&rsquo; section.
  311. </p>
  312. </dd>
  313. <dt><code>A</code></dt>
  314. <dt><code>=addr</code></dt>
  315. <dd><p>Displays the contents of the &lsquo;<samp>.debug_addr</samp>&rsquo; section.
  316. </p>
  317. </dd>
  318. <dt><code>c</code></dt>
  319. <dt><code>=cu_index</code></dt>
  320. <dd><p>Displays the contents of the &lsquo;<samp>.debug_cu_index</samp>&rsquo; and/or
  321. &lsquo;<samp>.debug_tu_index</samp>&rsquo; sections.
  322. </p>
  323. </dd>
  324. <dt><code>f</code></dt>
  325. <dt><code>=frames</code></dt>
  326. <dd><p>Display the raw contents of a &lsquo;<samp>.debug_frame</samp>&rsquo; section.
  327. </p>
  328. </dd>
  329. <dt><code>F</code></dt>
  330. <dt><code>=frame-interp</code></dt>
  331. <dd><p>Display the interpreted contents of a &lsquo;<samp>.debug_frame</samp>&rsquo; section.
  332. </p>
  333. </dd>
  334. <dt><code>g</code></dt>
  335. <dt><code>=gdb_index</code></dt>
  336. <dd><p>Displays the contents of the &lsquo;<samp>.gdb_index</samp>&rsquo; and/or
  337. &lsquo;<samp>.debug_names</samp>&rsquo; sections.
  338. </p>
  339. </dd>
  340. <dt><code>i</code></dt>
  341. <dt><code>=info</code></dt>
  342. <dd><p>Displays the contents of the &lsquo;<samp>.debug_info</samp>&rsquo; section. Note: the
  343. output from this option can also be restricted by the use of the
  344. <samp>--dwarf-depth</samp> and <samp>--dwarf-start</samp> options.
  345. </p>
  346. </dd>
  347. <dt><code>k</code></dt>
  348. <dt><code>=links</code></dt>
  349. <dd><p>Displays the contents of the &lsquo;<samp>.gnu_debuglink</samp>&rsquo; and/or
  350. &lsquo;<samp>.gnu_debugaltlink</samp>&rsquo; sections. Also displays any links to
  351. separate dwarf object files (dwo), if they are specified by the
  352. DW_AT_GNU_dwo_name or DW_AT_dwo_name attributes in the
  353. &lsquo;<samp>.debug_info</samp>&rsquo; section.
  354. </p>
  355. </dd>
  356. <dt><code>K</code></dt>
  357. <dt><code>=follow-links</code></dt>
  358. <dd><p>Display the contents of any selected debug sections that are found in
  359. linked, separate debug info file(s). This can result in multiple
  360. versions of the same debug section being displayed if it exists in
  361. more than one file.
  362. </p>
  363. <p>In addition, when displaying DWARF attributes, if a form is found that
  364. references the separate debug info file, then the referenced contents
  365. will also be displayed.
  366. </p>
  367. </dd>
  368. <dt><code>l</code></dt>
  369. <dt><code>=rawline</code></dt>
  370. <dd><p>Displays the contents of the &lsquo;<samp>.debug_line</samp>&rsquo; section in a raw
  371. format.
  372. </p>
  373. </dd>
  374. <dt><code>L</code></dt>
  375. <dt><code>=decodedline</code></dt>
  376. <dd><p>Displays the interpreted contents of the &lsquo;<samp>.debug_line</samp>&rsquo; section.
  377. </p>
  378. </dd>
  379. <dt><code>m</code></dt>
  380. <dt><code>=macro</code></dt>
  381. <dd><p>Displays the contents of the &lsquo;<samp>.debug_macro</samp>&rsquo; and/or
  382. &lsquo;<samp>.debug_macinfo</samp>&rsquo; sections.
  383. </p>
  384. </dd>
  385. <dt><code>o</code></dt>
  386. <dt><code>=loc</code></dt>
  387. <dd><p>Displays the contents of the &lsquo;<samp>.debug_loc</samp>&rsquo; and/or
  388. &lsquo;<samp>.debug_loclists</samp>&rsquo; sections.
  389. </p>
  390. </dd>
  391. <dt><code>O</code></dt>
  392. <dt><code>=str-offsets</code></dt>
  393. <dd><p>Displays the contents of the &lsquo;<samp>.debug_str_offsets</samp>&rsquo; section.
  394. </p>
  395. </dd>
  396. <dt><code>p</code></dt>
  397. <dt><code>=pubnames</code></dt>
  398. <dd><p>Displays the contents of the &lsquo;<samp>.debug_pubnames</samp>&rsquo; and/or
  399. &lsquo;<samp>.debug_gnu_pubnames</samp>&rsquo; sections.
  400. </p>
  401. </dd>
  402. <dt><code>r</code></dt>
  403. <dt><code>=aranges</code></dt>
  404. <dd><p>Displays the contents of the &lsquo;<samp>.debug_aranges</samp>&rsquo; section.
  405. </p>
  406. </dd>
  407. <dt><code>R</code></dt>
  408. <dt><code>=Ranges</code></dt>
  409. <dd><p>Displays the contents of the &lsquo;<samp>.debug_ranges</samp>&rsquo; and/or
  410. &lsquo;<samp>.debug_rnglists</samp>&rsquo; sections.
  411. </p>
  412. </dd>
  413. <dt><code>s</code></dt>
  414. <dt><code>=str</code></dt>
  415. <dd><p>Displays the contents of the &lsquo;<samp>.debug_str</samp>&rsquo;, &lsquo;<samp>.debug_line_str</samp>&rsquo;
  416. and/or &lsquo;<samp>.debug_str_offsets</samp>&rsquo; sections.
  417. </p>
  418. </dd>
  419. <dt><code>t</code></dt>
  420. <dt><code>=pubtype</code></dt>
  421. <dd><p>Displays the contents of the &lsquo;<samp>.debug_pubtypes</samp>&rsquo; and/or
  422. &lsquo;<samp>.debug_gnu_pubtypes</samp>&rsquo; sections.
  423. </p>
  424. </dd>
  425. <dt><code>T</code></dt>
  426. <dt><code>=trace_aranges</code></dt>
  427. <dd><p>Displays the contents of the &lsquo;<samp>.trace_aranges</samp>&rsquo; section.
  428. </p>
  429. </dd>
  430. <dt><code>u</code></dt>
  431. <dt><code>=trace_abbrev</code></dt>
  432. <dd><p>Displays the contents of the &lsquo;<samp>.trace_abbrev</samp>&rsquo; section.
  433. </p>
  434. </dd>
  435. <dt><code>U</code></dt>
  436. <dt><code>=trace_info</code></dt>
  437. <dd><p>Displays the contents of the &lsquo;<samp>.trace_info</samp>&rsquo; section.
  438. </p>
  439. </dd>
  440. </dl>
  441. <p>Note: displaying the contents of &lsquo;<samp>.debug_static_funcs</samp>&rsquo;,
  442. &lsquo;<samp>.debug_static_vars</samp>&rsquo; and &lsquo;<samp>debug_weaknames</samp>&rsquo; sections is not
  443. currently supported.
  444. </p>
  445. </dd>
  446. <dt><code>--dwarf-depth=<var>n</var></code></dt>
  447. <dd><p>Limit the dump of the <code>.debug_info</code> section to <var>n</var> children.
  448. This is only useful with <samp>--debug-dump=info</samp>. The default is
  449. to print all DIEs; the special value 0 for <var>n</var> will also have this
  450. effect.
  451. </p>
  452. <p>With a non-zero value for <var>n</var>, DIEs at or deeper than <var>n</var>
  453. levels will not be printed. The range for <var>n</var> is zero-based.
  454. </p>
  455. </dd>
  456. <dt><code>--dwarf-start=<var>n</var></code></dt>
  457. <dd><p>Print only DIEs beginning with the DIE numbered <var>n</var>. This is only
  458. useful with <samp>--debug-dump=info</samp>.
  459. </p>
  460. <p>If specified, this option will suppress printing of any header
  461. information and all DIEs before the DIE numbered <var>n</var>. Only
  462. siblings and children of the specified DIE will be printed.
  463. </p>
  464. <p>This can be used in conjunction with <samp>--dwarf-depth</samp>.
  465. </p>
  466. </dd>
  467. <dt><code>--ctf=<var>section</var></code></dt>
  468. <dd><a name="index-CTF-1"></a>
  469. <a name="index-Compact-Type-Format-1"></a>
  470. <p>Display the contents of the specified CTF section. CTF sections themselves
  471. contain many subsections, all of which are displayed in order.
  472. </p>
  473. </dd>
  474. <dt><code>--ctf-parent=<var>section</var></code></dt>
  475. <dd>
  476. <p>Specify the name of another section from which the CTF dictionary can inherit
  477. types. (If none is specified, we assume the CTF dictionary inherits types
  478. from the default-named member of the archive contained within this section.)
  479. </p></dd>
  480. <dt><code>--ctf-symbols=<var>section</var></code></dt>
  481. <dt><code>--ctf-strings=<var>section</var></code></dt>
  482. <dd><p>Specify the name of another section from which the CTF file can inherit
  483. strings and symbols. By default, the <code>.symtab</code> and its linked
  484. string table are used.
  485. </p>
  486. <p>If either of <samp>--ctf-symbols</samp> or <samp>--ctf-strings</samp> is specified, the
  487. other must be specified as well.
  488. </p>
  489. </dd>
  490. <dt><code>-I</code></dt>
  491. <dt><code>--histogram</code></dt>
  492. <dd><p>Display a histogram of bucket list lengths when displaying the contents
  493. of the symbol tables.
  494. </p>
  495. </dd>
  496. <dt><code>-v</code></dt>
  497. <dt><code>--version</code></dt>
  498. <dd><p>Display the version number of readelf.
  499. </p>
  500. </dd>
  501. <dt><code>-W</code></dt>
  502. <dt><code>--wide</code></dt>
  503. <dd><p>Don&rsquo;t break output lines to fit into 80 columns. By default
  504. <code>readelf</code> breaks section header and segment listing lines for
  505. 64-bit ELF files, so that they fit into 80 columns. This option causes
  506. <code>readelf</code> to print each section header resp. each segment one a
  507. single line, which is far more readable on terminals wider than 80 columns.
  508. </p>
  509. </dd>
  510. <dt><code>-T</code></dt>
  511. <dt><code>--silent-truncation</code></dt>
  512. <dd><p>Normally when readelf is displaying a symbol name, and it has to
  513. truncate the name to fit into an 80 column display, it will add a
  514. suffix of <code>[...]</code> to the name. This command line option
  515. disables this behaviour, allowing 5 more characters of the name to be
  516. displayed and restoring the old behaviour of readelf (prior to release
  517. 2.35).
  518. </p>
  519. </dd>
  520. <dt><code>-H</code></dt>
  521. <dt><code>--help</code></dt>
  522. <dd><p>Display the command-line options understood by <code>readelf</code>.
  523. </p>
  524. </dd>
  525. </dl>
  526. <hr>
  527. <div class="header">
  528. <p>
  529. Next: <a href="elfedit.html#elfedit" accesskey="n" rel="next">elfedit</a>, Previous: <a href="dlltool.html#dlltool" accesskey="p" rel="previous">dlltool</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Binutils-Index.html#Binutils-Index" title="Index" rel="index">Index</a>]</p>
  530. </div>
  531. </body>
  532. </html>