📄 objdump.html
字号:
using the <code>-Ttext</code>, <code>-Tdata</code>, or <code>-Tbss</code> options to
<code>ld</code>. However, some object file formats, such as a.out, do not
store the starting address of the file segments. In those situations,
although <code>ld</code> relocates the sections correctly, using <code>objdump
-h</code> to list the file section headers cannot show the correct addresses.
Instead, it shows the usual addresses, which are implicit for the
target.
<br><dt><code>--help</code>
<dd>Print a summary of the options to <code>objdump</code> and exit.
<br><dt><code>-i</code>
<dd><dt><code>--info</code>
<dd>Display a list showing all architectures and object formats available
for specification with <code>-b</code> or <code>-m</code>.
<br><dt><code>-j </code><var>name</var><code></code>
<dd><dt><code>--section=</code><var>name</var><code></code>
<dd>Display information only for section <var>name</var>.
<br><dt><code>-l</code>
<dd><dt><code>--line-numbers</code>
<dd>Label the display (using debugging information) with the filename and
source line numbers corresponding to the object code or relocs shown.
Only useful with <code>-d</code>, <code>-D</code>, or <code>-r</code>.
<br><dt><code>-m </code><var>machine</var><code></code>
<dd><dt><code>--architecture=</code><var>machine</var><code></code>
<dd>Specify the architecture to use when disassembling object files. This
can be useful when disassembling object files which do not describe
architecture information, such as S-records. You can list the available
architectures with the <code>-i</code> option.
<br><dt><code>-M </code><var>options</var><code></code>
<dd><dt><code>--disassembler-options=</code><var>options</var><code></code>
<dd>Pass target specific information to the disassembler. Only supported on
some targets.
<p>If the target is an ARM architecture then this switch can be used to
select which register name set is used during disassembler. Specifying
<code>-M reg-name-std</code> (the default) will select the register names as
used in ARM's instruction set documentation, but with register 13 called
'sp', register 14 called 'lr' and register 15 called 'pc'. Specifying
<code>-M reg-names-apcs</code> will select the name set used by the ARM
Procedure Call Standard, whilst specifying <code>-M reg-names-raw</code> will
just use <code>r</code> followed by the register number.
<p>There are also two variants on the APCS register naming scheme enabled
by <code>-M reg-names-atpcs</code> and <code>-M reg-names-special-atpcs</code> which
use the ARM/Thumb Procedure Call Standard naming conventions. (Either
with the normal register name or the special register names).
<p>This option can also be used for ARM architectures to force the
disassembler to interpret all instructions as Thumb instructions by
using the switch <code>--disassembler-options=force-thumb</code>. This can be
useful when attempting to disassemble thumb code produced by other
compilers.
<p>For the x86, some of the options duplicate functions of the <code>-m</code>
switch, but allow finer grained control. Multiple selections from the
following may be specified as a comma separated string.
<code>x86-64</code>, <code>i386</code> and <code>i8086</code> select disassembly for
the given architecture. <code>intel</code> and <code>att</code> select between
intel syntax mode and AT&T syntax mode. <code>addr32</code>,
<code>addr16</code>, <code>data32</code> and <code>data16</code> specify the default
address size and operand size. These four options will be overridden if
<code>x86-64</code>, <code>i386</code> or <code>i8086</code> appear later in the
option string. Lastly, <code>suffix</code>, when in AT&T mode,
instructs the dissassembler to print a mnemonic suffix even when the
suffix could be inferred by the operands.
<p>For PPC, <code>booke</code>, <code>booke32</code> and <code>booke64</code> select
disassembly of BookE instructions. <code>32</code> and <code>64</code> select
PowerPC and PowerPC64 disassembly, respectively.
<br><dt><code>-p</code>
<dd><dt><code>--private-headers</code>
<dd>Print information that is specific to the object file format. The exact
information printed depends upon the object file format. For some
object file formats, no additional information is printed.
<br><dt><code>-r</code>
<dd><dt><code>--reloc</code>
<dd>Print the relocation entries of the file. If used with <code>-d</code> or
<code>-D</code>, the relocations are printed interspersed with the
disassembly.
<br><dt><code>-R</code>
<dd><dt><code>--dynamic-reloc</code>
<dd>Print the dynamic relocation entries of the file. This is only
meaningful for dynamic objects, such as certain types of shared
libraries.
<br><dt><code>-s</code>
<dd><dt><code>--full-contents</code>
<dd>Display the full contents of any sections requested.
<br><dt><code>-S</code>
<dd><dt><code>--source</code>
<dd>Display source code intermixed with disassembly, if possible. Implies
<code>-d</code>.
<br><dt><code>--show-raw-insn</code>
<dd>When disassembling instructions, print the instruction in hex as well as
in symbolic form. This is the default except when
<code>--prefix-addresses</code> is used.
<br><dt><code>--no-show-raw-insn</code>
<dd>When disassembling instructions, do not print the instruction bytes.
This is the default when <code>--prefix-addresses</code> is used.
<br><dt><code>-G</code>
<dd><br><dt><code>--stabs</code>
<dd>Display the full contents of any sections requested. Display the
contents of the .stab and .stab.index and .stab.excl sections from an
ELF file. This is only useful on systems (such as Solaris 2.0) in which
<code>.stab</code> debugging symbol-table entries are carried in an ELF
section. In most other file formats, debugging symbol-table entries are
interleaved with linkage symbols, and are visible in the <code>--syms</code>
output.
For more information on stabs symbols, see <a href="../stabs.info/index.html#Top">Stabs</a>.
<br><dt><code>--start-address=</code><var>address</var><code></code>
<dd>Start displaying data at the specified address. This affects the output
of the <code>-d</code>, <code>-r</code> and <code>-s</code> options.
<br><dt><code>--stop-address=</code><var>address</var><code></code>
<dd>Stop displaying data at the specified address. This affects the output
of the <code>-d</code>, <code>-r</code> and <code>-s</code> options.
<br><dt><code>-t</code>
<dd><dt><code>--syms</code>
<dd>Print the symbol table entries of the file.
This is similar to the information provided by the <code>nm</code> program.
<br><dt><code>-T</code>
<dd><dt><code>--dynamic-syms</code>
<dd>Print the dynamic symbol table entries of the file. This is only
meaningful for dynamic objects, such as certain types of shared
libraries. This is similar to the information provided by the <code>nm</code>
program when given the <code>-D</code> (<code>--dynamic</code>) option.
<br><dt><code>--version</code>
<dd>Print the version number of <code>objdump</code> and exit.
<br><dt><code>-x</code>
<dd><dt><code>--all-header</code>
<dd>Display all available header information, including the symbol table and
relocation entries. Using <code>-x</code> is equivalent to specifying all of
<code>-a -f -h -r -t</code>.
<br><dt><code>-w</code>
<dd><dt><code>--wide</code>
<dd>Format some lines for output devices that have more than 80 columns.
Also do not truncate symbol names when they are displayed.
</dl>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -