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