📄 readelf.html
字号:
<html lang="en">
<head>
<title>GNU Binary Utilities</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="GNU Binary Utilities">
<meta name="generator" content="makeinfo 4.3">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home">
</head>
<body>
<div class="node">
<p>
Node:<a name="readelf">readelf</a>,
Next:<a rel="next" accesskey="n" href="size.html#size">size</a>,
Previous:<a rel="previous" accesskey="p" href="ranlib.html#ranlib">ranlib</a>,
Up:<a rel="up" accesskey="u" href="index.html#Top">Top</a>
<hr><br>
</div>
<h2 class="chapter">readelf</h2>
<pre class="smallexample"> readelf [<code>-a</code>|<code>--all</code>]
[<code>-h</code>|<code>--file-header</code>]
[<code>-l</code>|<code>--program-headers</code>|<code>--segments</code>]
[<code>-S</code>|<code>--section-headers</code>|<code>--sections</code>]
[<code>-e</code>|<code>--headers</code>]
[<code>-s</code>|<code>--syms</code>|<code>--symbols</code>]
[<code>-n</code>|<code>--notes</code>]
[<code>-r</code>|<code>--relocs</code>]
[<code>-u</code>|<code>--unwind</code>]
[<code>-d</code>|<code>--dynamic</code>]
[<code>-V</code>|<code>--version-info</code>]
[<code>-D</code>|<code>--use-dynamic</code>]
[<code>-x</code> <number>|<code>--hex-dump=</code><number>]
[<code>-w[liaprmfFso]</code>|<code>--debug-dump</code>[=line,=info,=abbrev,=pubnames,=ranges,=macro,=frames,=str,=loc]]
[<code>-histogram</code>]
[<code>-v</code>|<code>--version</code>]
[<code>-W</code>|<code>--wide</code>]
[<code>-H</code>|<code>--help</code>]
<var>elffile</var>...
</pre>
<p><code>readelf</code> displays information about one or more ELF format object
files. The options control what particular information to display.
<p><var>elffile</var><small class="dots">...</small> are the object files to be examined. At the
moment, <code>readelf</code> does not support examining archives, nor does it
support examing 64 bit ELF files.
<p>The long and short forms of options, shown here as alternatives, are
equivalent. At least one option besides <code>-v</code> or <code>-H</code> must be
given.
<dl>
<dt><code>-a</code>
<dd><dt><code>--all</code>
<dd>Equivalent to specifiying <code>--file-header</code>,
<code>--program-headers</code>, <code>--sections</code>, <code>--symbols</code>,
<code>--relocs</code>, <code>--dynamic</code>, <code>--notes</code> and
<code>--version-info</code>.
<br><dt><code>-h</code>
<dd><dt><code>--file-header</code>
<dd>Displays the information contained in the ELF header at the start of the
file.
<br><dt><code>-l</code>
<dd><dt><code>--program-headers</code>
<dd><dt><code>--segments</code>
<dd>Displays the information contained in the file's segment headers, if it
has any.
<br><dt><code>-S</code>
<dd><dt><code>--sections</code>
<dd><dt><code>--section-headers</code>
<dd>Displays the information contained in the file's section headers, if it
has any.
<br><dt><code>-s</code>
<dd><dt><code>--symbols</code>
<dd><dt><code>--syms</code>
<dd>Displays the entries in symbol table section of the file, if it has one.
<br><dt><code>-e</code>
<dd><dt><code>--headers</code>
<dd>Display all the headers in the file. Equivalent to <code>-h -l -S</code>.
<br><dt><code>-n</code>
<dd><dt><code>--notes</code>
<dd>Displays the contents of the NOTE segment, if it exists.
<br><dt><code>-r</code>
<dd><dt><code>--relocs</code>
<dd>Displays the contents of the file's relocation section, if it has one.
<br><dt><code>-u</code>
<dd><dt><code>--unwind</code>
<dd>Displays the contents of the file's unwind section, if it has one. Only
the unwind sections for IA64 ELF files are currently supported.
<br><dt><code>-d</code>
<dd><dt><code>--dynamic</code>
<dd>Displays the contents of the file's dynamic section, if it has one.
<br><dt><code>-V</code>
<dd><dt><code>--version-info</code>
<dd>Displays the contents of the version sections in the file, it they
exist.
<br><dt><code>-D</code>
<dd><dt><code>--use-dynamic</code>
<dd>When displaying symbols, this option makes <code>readelf</code> use the
symbol table in the file's dynamic section, rather than the one in the
symbols section.
<br><dt><code>-x <number></code>
<dd><dt><code>--hex-dump=<number></code>
<dd>Displays the contents of the indicated section as a hexadecimal dump.
<br><dt><code>-w[liaprmfFso]</code>
<dd><dt><code>--debug-dump[=line,=info,=abbrev,=pubnames,=ranges,=macro,=frames,=str,=loc]</code>
<dd>Displays the contents of the debug sections in the file, if any are
present. If one of the optional letters or words follows the switch
then only data found in those specific sections will be dumped.
<br><dt><code>--histogram</code>
<dd>Display a histogram of bucket list lengths when displaying the contents
of the symbol tables.
<br><dt><code>-v</code>
<dd><dt><code>--version</code>
<dd>Display the version number of readelf.
<br><dt><code>-W</code>
<dd><dt><code>--wide</code>
<dd>Don't break output lines to fit into 80 columns. By default
<code>readelf</code> breaks section header and segment listing lines for
64-bit ELF files, so that they fit into 80 columns. This option causes
<code>readelf</code> to print each section header resp. each segment one a
single line, which is far more readable on terminals wider than 80 columns.
<br><dt><code>-H</code>
<dd><dt><code>--help</code>
<dd>Display the command line options understood by <code>readelf</code>.
</dl>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -