1997-01-29 20:00:54 +01:00
|
|
|
.\" Copyright (c) 1991, 1996, 1997 Free Software Foundation
|
1991-11-05 23:43:50 +01:00
|
|
|
.\" See section COPYING for conditions for redistribution
|
|
|
|
.TH objdump 1 "5 November 1991" "cygnus support" "GNU Development Tools"
|
|
|
|
.de BP
|
|
|
|
.sp
|
|
|
|
.ti \-.2i
|
|
|
|
\(**
|
|
|
|
..
|
|
|
|
|
|
|
|
.SH NAME
|
1993-11-13 16:16:23 +01:00
|
|
|
objdump \- display information from object files.
|
1991-11-05 23:43:50 +01:00
|
|
|
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.hy 0
|
|
|
|
.na
|
|
|
|
.TP
|
1993-06-28 04:17:13 +02:00
|
|
|
.B objdump
|
1994-01-06 20:49:06 +01:00
|
|
|
.RB "[\|" \-a | \-\-archive\-headers "\|]"
|
1991-11-05 23:43:50 +01:00
|
|
|
.RB "[\|" "\-b\ "\c
|
|
|
|
.I bfdname\c
|
1994-01-06 20:49:06 +01:00
|
|
|
.RB " | " "\-\-target="\c
|
|
|
|
.I bfdname\c
|
1991-11-05 23:43:50 +01:00
|
|
|
\&\|]
|
1996-01-02 23:48:58 +01:00
|
|
|
.RB "[\|" \-\-debugging "\|]"
|
1994-01-06 20:49:06 +01:00
|
|
|
.RB "[\|" \-d | \-\-disassemble "\|]"
|
1994-09-16 03:59:30 +02:00
|
|
|
.RB "[\|" \-D | \-\-disassemble-all "\|]"
|
1997-01-29 19:58:04 +01:00
|
|
|
.RB "[\|" \-\-disassemble\-zeroes "\|]"
|
1996-06-24 22:49:28 +02:00
|
|
|
.RB "[\|" \-EB | \-EL | \-\-endian=\c
|
|
|
|
.I {big|little}\c
|
|
|
|
\&\|]
|
1994-01-06 20:49:06 +01:00
|
|
|
.RB "[\|" \-f | \-\-file\-headers "\|]"
|
|
|
|
.RB "[\|" \-h | \-\-section\-headers
|
|
|
|
.RB "| " \-\-headers "\|]"
|
|
|
|
.RB "[\|" \-i | \-\-info "\|]"
|
1991-11-05 23:43:50 +01:00
|
|
|
.RB "[\|" "\-j\ "\c
|
|
|
|
.I section\c
|
1994-01-06 20:49:06 +01:00
|
|
|
.RB " | " "\-\-section="\c
|
|
|
|
.I section\c
|
1991-11-05 23:43:50 +01:00
|
|
|
\&\|]
|
1994-01-06 20:49:06 +01:00
|
|
|
.RB "[\|" \-l | \-\-line\-numbers "\|]"
|
1991-11-05 23:43:50 +01:00
|
|
|
.RB "[\|" "\-m\ "\c
|
|
|
|
.I machine\c
|
1994-01-06 20:49:06 +01:00
|
|
|
.RB " | " "\-\-architecture="\c
|
|
|
|
.I machine\c
|
1991-11-05 23:43:50 +01:00
|
|
|
\&\|]
|
1996-10-24 23:21:17 +02:00
|
|
|
.RB "[\|" \-\-prefix\-addresses "\|]"
|
1993-04-29 20:15:00 +02:00
|
|
|
.RB "[\|" \-r | \-\-reloc "\|]"
|
1994-04-07 04:04:34 +02:00
|
|
|
.RB "[\|" \-R | \-\-dynamic\-reloc "\|]"
|
1994-01-06 20:49:06 +01:00
|
|
|
.RB "[\|" \-s | \-\-full\-contents "\|]"
|
1995-02-15 00:07:21 +01:00
|
|
|
.RB "[\|" \-S | \-\-source "\|]"
|
1996-01-23 01:50:24 +01:00
|
|
|
.RB "[\|" \-\-show\-raw\-insn "\|]"
|
1993-04-29 20:15:00 +02:00
|
|
|
.RB "[\|" \-\-stabs "\|]"
|
|
|
|
.RB "[\|" \-t | \-\-syms "\|]"
|
1994-04-07 04:04:34 +02:00
|
|
|
.RB "[\|" \-T | \-\-dynamic\-syms "\|]"
|
1994-01-06 20:49:06 +01:00
|
|
|
.RB "[\|" \-x | \-\-all\-headers "\|]"
|
1995-09-14 00:38:55 +02:00
|
|
|
.RB "[\|" "\-\-start\-address="\c
|
|
|
|
.I address\c
|
|
|
|
\&\|]
|
|
|
|
.RB "[\|" "\-\-stop\-address="\c
|
|
|
|
.I address\c
|
|
|
|
\&\|]
|
1993-06-28 04:17:13 +02:00
|
|
|
.RB "[\|" \-\-version "\|]"
|
|
|
|
.RB "[\|" \-\-help "\|]"
|
1993-04-29 20:15:00 +02:00
|
|
|
.I objfile\c
|
1991-11-05 23:43:50 +01:00
|
|
|
\&.\|.\|.
|
|
|
|
.ad b
|
|
|
|
.hy 1
|
|
|
|
.SH DESCRIPTION
|
|
|
|
\c
|
|
|
|
.B objdump\c
|
|
|
|
\& displays information about one or more object files.
|
|
|
|
The options control what particular information to display. This
|
|
|
|
information is mostly useful to programmers who are working on the
|
|
|
|
compilation tools, as opposed to programmers who just want their
|
|
|
|
program to compile and work.
|
1993-06-28 04:17:13 +02:00
|
|
|
.PP
|
1993-04-29 20:15:00 +02:00
|
|
|
.IR "objfile" .\|.\|.
|
1993-06-28 04:17:13 +02:00
|
|
|
are the object files to be examined. When you specify archives,
|
1991-11-05 23:43:50 +01:00
|
|
|
\c
|
|
|
|
.B objdump\c
|
|
|
|
\& shows information on each of the member object files.
|
|
|
|
|
1993-06-28 04:17:13 +02:00
|
|
|
.SH OPTIONS
|
|
|
|
Where long and short forms of an option are shown together, they are
|
1993-08-04 02:39:19 +02:00
|
|
|
equivalent. At least one option besides
|
|
|
|
.B \-l
|
1994-01-06 20:49:06 +01:00
|
|
|
(\fB\-\-line\-numbers\fP) must be given.
|
1993-06-28 04:17:13 +02:00
|
|
|
|
1991-11-05 23:43:50 +01:00
|
|
|
.TP
|
|
|
|
.B \-a
|
1994-01-06 20:49:06 +01:00
|
|
|
.TP
|
|
|
|
.B \-\-archive\-headers
|
1991-11-05 23:43:50 +01:00
|
|
|
If any files from \c
|
1993-04-29 20:15:00 +02:00
|
|
|
.I objfile\c
|
1991-11-05 23:43:50 +01:00
|
|
|
\& are archives, display the archive
|
|
|
|
header information (in a format similar to `\|\c
|
|
|
|
.B ls \-l\c
|
|
|
|
\|'). Besides the
|
|
|
|
information you could list with `\|\c
|
|
|
|
.B ar tv\c
|
|
|
|
\|', `\|\c
|
|
|
|
.B objdump \-a\c
|
|
|
|
\|' shows
|
|
|
|
the object file format of each archive member.
|
|
|
|
|
|
|
|
.TP
|
1994-01-06 20:49:06 +01:00
|
|
|
.BI "\-b " "bfdname"\c
|
|
|
|
.TP
|
1995-10-06 21:48:58 +01:00
|
|
|
.BI "\-\-target=" "bfdname"
|
1993-06-28 04:17:13 +02:00
|
|
|
Specify the object-code format for the object files to be
|
1991-11-05 23:43:50 +01:00
|
|
|
\c
|
|
|
|
.I bfdname\c
|
|
|
|
\&. This may not be necessary; \c
|
|
|
|
.I objdump\c
|
|
|
|
\& can
|
|
|
|
automatically recognize many formats. For example,
|
|
|
|
.sp
|
|
|
|
.br
|
|
|
|
objdump\ \-b\ oasys\ \-m\ vax\ \-h\ fu.o
|
|
|
|
.br
|
|
|
|
.sp
|
1993-06-28 04:17:13 +02:00
|
|
|
display summary information from the section headers (`\|\c
|
1991-11-05 23:43:50 +01:00
|
|
|
.B \-h\c
|
|
|
|
\|') of
|
|
|
|
`\|\c
|
|
|
|
.B fu.o\c
|
|
|
|
\|', which is explicitly identified (`\|\c
|
|
|
|
.B \-m\c
|
|
|
|
\|') as a Vax object
|
|
|
|
file in the format produced by Oasys compilers. You can list the
|
|
|
|
formats available with the `\|\c
|
|
|
|
.B \-i\c
|
|
|
|
\|' option.
|
|
|
|
|
1996-01-02 23:48:58 +01:00
|
|
|
.TP
|
|
|
|
.B \-\-debugging
|
|
|
|
Display debugging information. This attempts to parse debugging
|
|
|
|
information stored in the file and print it out using a C like syntax.
|
|
|
|
Only certain types of debugging information have been implemented.
|
|
|
|
|
1991-11-05 23:43:50 +01:00
|
|
|
.TP
|
|
|
|
.B \-d
|
1994-01-06 20:49:06 +01:00
|
|
|
.TP
|
|
|
|
.B \-\-disassemble
|
|
|
|
Display the assembler mnemonics for the machine
|
1991-11-05 23:43:50 +01:00
|
|
|
instructions from \c
|
1993-04-29 20:15:00 +02:00
|
|
|
.I objfile\c
|
1991-11-05 23:43:50 +01:00
|
|
|
\&.
|
1994-09-16 03:59:30 +02:00
|
|
|
This option only disassembles those sections which are
|
|
|
|
expected to contain instructions.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \-D
|
|
|
|
.TP
|
|
|
|
.B \-\-disassemble-all
|
|
|
|
Like \fB\-d\fP, but disassemble the contents of all sections, not just
|
|
|
|
those expected to contain instructions.
|
1991-11-05 23:43:50 +01:00
|
|
|
|
1997-01-29 19:58:04 +01:00
|
|
|
.TP
|
|
|
|
.B \-\-prefix\-addresses
|
|
|
|
When disassembling, print the complete address on each line. This is
|
|
|
|
the older disassembly format.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \-\-disassemble\-zeroes
|
|
|
|
Normally the disassembly output will skip blocks of zeroes. This
|
|
|
|
option directs the disassembler to disassemble those blocks, just like
|
|
|
|
any other data.
|
|
|
|
|
1996-06-24 22:49:28 +02:00
|
|
|
.TP
|
|
|
|
.B \-EB
|
|
|
|
.TP
|
|
|
|
.B \-EL
|
|
|
|
.TP
|
|
|
|
.BI "\-\-endian=" "{big|little}"
|
|
|
|
Specify the endianness of the object files. This only affects
|
|
|
|
disassembly. This can be useful when disassembling a file format which
|
|
|
|
does not describe endianness information, such as S-records.
|
|
|
|
|
1991-11-05 23:43:50 +01:00
|
|
|
.TP
|
|
|
|
.B \-f
|
1994-01-06 20:49:06 +01:00
|
|
|
.TP
|
|
|
|
.B \-\-file\-headers
|
|
|
|
Display summary information from the overall header of
|
1991-11-05 23:43:50 +01:00
|
|
|
each file in \c
|
1993-04-29 20:15:00 +02:00
|
|
|
.I objfile\c
|
1991-11-05 23:43:50 +01:00
|
|
|
\&.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \-h
|
|
|
|
.TP
|
1994-01-06 20:49:06 +01:00
|
|
|
.B \-\-section\-headers
|
|
|
|
.TP
|
|
|
|
.B \-\-headers
|
|
|
|
Display summary information from the section headers of the
|
1991-11-05 23:43:50 +01:00
|
|
|
object file.
|
|
|
|
|
1993-06-28 04:17:13 +02:00
|
|
|
.TP
|
|
|
|
.B \-\-help
|
|
|
|
Print a summary of the options to
|
|
|
|
.B objdump
|
|
|
|
and exit.
|
|
|
|
|
1991-11-05 23:43:50 +01:00
|
|
|
.TP
|
|
|
|
.B \-i
|
1994-01-06 20:49:06 +01:00
|
|
|
.TP
|
|
|
|
.B \-\-info
|
1991-11-05 23:43:50 +01:00
|
|
|
Display a list showing all architectures and object formats available
|
|
|
|
for specification with \c
|
|
|
|
.B \-b\c
|
|
|
|
\& or \c
|
|
|
|
.B \-m\c
|
|
|
|
\&.
|
|
|
|
|
|
|
|
.TP
|
1994-01-06 20:49:06 +01:00
|
|
|
.BI "\-j " "name"\c
|
|
|
|
.TP
|
1995-10-06 21:48:58 +01:00
|
|
|
.BI "\-\-section=" "name"
|
1991-11-05 23:43:50 +01:00
|
|
|
Display information only for section \c
|
|
|
|
.I name\c
|
1995-10-06 21:48:58 +01:00
|
|
|
\&.
|
1991-11-05 23:43:50 +01:00
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \-l
|
1994-01-06 20:49:06 +01:00
|
|
|
.TP
|
|
|
|
.B \-\-line\-numbers
|
|
|
|
Label the display (using debugging information) with the filename
|
|
|
|
and source line numbers corresponding to the object code shown.
|
1996-06-12 05:14:14 +02:00
|
|
|
Only useful with \fB\-d\fP, \fB\-D\fP, or \fB\-r\fP.
|
1991-11-05 23:43:50 +01:00
|
|
|
|
|
|
|
.TP
|
1994-01-06 20:49:06 +01:00
|
|
|
.BI "\-m " "machine"\c
|
|
|
|
.TP
|
1995-10-06 21:48:58 +01:00
|
|
|
.BI "\-\-architecture=" "machine"
|
1996-06-24 22:49:28 +02:00
|
|
|
Specify the architecture to use when disassembling object files. This
|
|
|
|
can be useful when disasembling object files which do not describe
|
|
|
|
architecture information, such as S-records. You can list the available
|
|
|
|
architectures with the \fB\-i\fP option.
|
1991-11-05 23:43:50 +01:00
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \-r
|
|
|
|
.TP
|
1993-04-29 20:15:00 +02:00
|
|
|
.B \-\-reloc
|
1994-09-16 03:59:30 +02:00
|
|
|
Print the relocation entries of the file. If used with \fB\-d\fP or
|
|
|
|
\fB\-d\fP, the relocations are printed interspersed with the
|
|
|
|
disassembly.
|
1991-11-05 23:43:50 +01:00
|
|
|
|
1994-04-07 04:04:34 +02:00
|
|
|
.TP
|
|
|
|
.B \-R
|
|
|
|
.TP
|
|
|
|
.B \-\-dynamic\-reloc
|
|
|
|
Print the dynamic relocation entries of the file. This is only
|
|
|
|
meaningful for dynamic objects, such as certain types of shared
|
|
|
|
libraries.
|
|
|
|
|
1991-11-05 23:43:50 +01:00
|
|
|
.TP
|
|
|
|
.B \-s
|
1994-01-06 20:49:06 +01:00
|
|
|
.TP
|
|
|
|
.B \-\-full\-contents
|
1991-11-05 23:43:50 +01:00
|
|
|
Display the full contents of any sections requested.
|
|
|
|
|
1995-02-15 00:07:21 +01:00
|
|
|
.TP
|
|
|
|
.B \-S
|
|
|
|
.TP
|
|
|
|
.B \-\-source
|
|
|
|
Display source code intermixed with disassembly, if possible. Implies
|
|
|
|
\fB-d\fP.
|
|
|
|
|
1996-01-23 01:50:24 +01:00
|
|
|
.TP
|
1996-10-24 23:21:17 +02:00
|
|
|
.B \-\-show\-raw\-insn
|
1996-01-23 01:50:24 +01:00
|
|
|
When disassembling instructions, print the instruction in hex as well as
|
1996-10-24 23:21:17 +02:00
|
|
|
in symbolic form. This is the default except when
|
|
|
|
.B \-\-prefix\-addresses
|
|
|
|
is used.
|
1996-01-23 01:50:24 +01:00
|
|
|
|
1992-06-11 11:18:44 +02:00
|
|
|
.TP
|
1993-04-29 20:15:00 +02:00
|
|
|
.B \-\-stabs
|
1992-06-14 19:52:53 +02:00
|
|
|
Display the contents of the .stab, .stab.index, and .stab.excl
|
|
|
|
sections from an ELF file. This is only useful on systems (such as
|
|
|
|
Solaris 2.0) in which .stab 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
|
1993-04-29 20:15:00 +02:00
|
|
|
\-\-syms output.
|
1992-06-11 11:18:44 +02:00
|
|
|
|
1995-09-14 00:38:55 +02:00
|
|
|
.TP
|
|
|
|
.BI "\-\-start\-address=" "address"
|
|
|
|
Start displaying data at the specified address. This affects the output
|
|
|
|
of the
|
|
|
|
.B \-d\c
|
|
|
|
,
|
|
|
|
.B \-r
|
|
|
|
and
|
|
|
|
.B \-s
|
|
|
|
options.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.BI "\-\-stop\-address=" "address"
|
|
|
|
Stop displaying data at the specified address. This affects the output
|
|
|
|
of the
|
|
|
|
.B \-d\c
|
|
|
|
,
|
|
|
|
.B \-r
|
|
|
|
and
|
|
|
|
.B \-s
|
|
|
|
options.
|
|
|
|
|
1991-11-05 23:43:50 +01:00
|
|
|
.TP
|
|
|
|
.B \-t
|
|
|
|
.TP
|
1993-04-29 20:15:00 +02:00
|
|
|
.B \-\-syms
|
1991-11-05 23:43:50 +01:00
|
|
|
Symbol Table. Print the symbol table entries of the file.
|
|
|
|
This is similar to the information provided by the `\|\c
|
|
|
|
.B nm\c
|
|
|
|
\|' program.
|
|
|
|
|
1994-04-07 04:04:34 +02:00
|
|
|
.TP
|
|
|
|
.B \-T
|
|
|
|
.TP
|
|
|
|
.B \-\-dynamic\-syms
|
|
|
|
Dynamic Symbol Table. 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 `\|\c
|
|
|
|
.B nm\c
|
|
|
|
\|' program when given the
|
|
|
|
.B \-D (\-\-dynamic)
|
|
|
|
option.
|
|
|
|
|
1993-06-28 04:17:13 +02:00
|
|
|
.TP
|
|
|
|
.B \-\-version
|
|
|
|
Print the version number of
|
|
|
|
.B objdump
|
|
|
|
and exit.
|
|
|
|
|
1991-11-05 23:43:50 +01:00
|
|
|
.TP
|
|
|
|
.B \-x
|
1994-01-06 20:49:06 +01:00
|
|
|
.TP
|
|
|
|
.B \-\-all\-headers
|
1991-11-05 23:43:50 +01:00
|
|
|
Display all available header information, including the symbol table and
|
|
|
|
relocation entries. Using `\|\c
|
|
|
|
.B \-x\c
|
|
|
|
\|' is equivalent to specifying all of
|
|
|
|
`\|\c
|
|
|
|
.B \-a \-f \-h \-r \-t\c
|
|
|
|
\|'.
|
|
|
|
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.RB "`\|" binutils "\|'"
|
|
|
|
entry in
|
|
|
|
.B
|
|
|
|
info\c
|
|
|
|
\&;
|
|
|
|
.I
|
|
|
|
The GNU Binary Utilities\c
|
|
|
|
\&, Roland H. Pesch (October 1991);
|
|
|
|
.BR nm "(" 1 ")."
|
|
|
|
|
|
|
|
.SH COPYING
|
1996-01-09 00:14:40 +01:00
|
|
|
Copyright (c) 1991, 92, 93, 94, 95, 1996 Free Software Foundation, Inc.
|
1991-11-05 23:43:50 +01:00
|
|
|
.PP
|
|
|
|
Permission is granted to make and distribute verbatim copies of
|
|
|
|
this manual provided the copyright notice and this permission notice
|
|
|
|
are preserved on all copies.
|
|
|
|
.PP
|
|
|
|
Permission is granted to copy and distribute modified versions of this
|
|
|
|
manual under the conditions for verbatim copying, provided that the
|
|
|
|
entire resulting derived work is distributed under the terms of a
|
|
|
|
permission notice identical to this one.
|
|
|
|
.PP
|
|
|
|
Permission is granted to copy and distribute translations of this
|
|
|
|
manual into another language, under the above conditions for modified
|
|
|
|
versions, except that this permission notice may be included in
|
|
|
|
translations approved by the Free Software Foundation instead of in
|
|
|
|
the original English.
|