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