mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-26 13:30:30 +00:00
d5464baad0
(usage): Document --disassemble-all. (long_options): Add disassemble-all as a synonym for -D. (compare_symbols): Make pointers const. (compare_relocs): New static function. (disassemble_data): Rename disassemble to disassemble_fn to avoid shadowing. If dump_reloc_info, print relocs along with disassembly. Skip sections which are not SEC_CODE unless disassemble_all or only is set. (display_bfd): Don't call dump_relocs if disassemble is set. (main): Accept and handle -D. * binutils.texi: Document -D/--disassemble-all. * objdump.1: Likewise. PR 5059.
307 lines
6.5 KiB
Groff
307 lines
6.5 KiB
Groff
.\" Copyright (c) 1991 Free Software Foundation
|
|
.\" 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
|
|
objdump \- display information from object files.
|
|
|
|
.SH SYNOPSIS
|
|
.hy 0
|
|
.na
|
|
.TP
|
|
.B objdump
|
|
.RB "[\|" \-a | \-\-archive\-headers "\|]"
|
|
.RB "[\|" "\-b\ "\c
|
|
.I bfdname\c
|
|
.RB " | " "\-\-target="\c
|
|
.I bfdname\c
|
|
\&\|]
|
|
.RB "[\|" \-d | \-\-disassemble "\|]"
|
|
.RB "[\|" \-D | \-\-disassemble-all "\|]"
|
|
.RB "[\|" \-f | \-\-file\-headers "\|]"
|
|
.RB "[\|" \-h | \-\-section\-headers
|
|
.RB "| " \-\-headers "\|]"
|
|
.RB "[\|" \-i | \-\-info "\|]"
|
|
.RB "[\|" "\-j\ "\c
|
|
.I section\c
|
|
.RB " | " "\-\-section="\c
|
|
.I section\c
|
|
\&\|]
|
|
.RB "[\|" \-l | \-\-line\-numbers "\|]"
|
|
.RB "[\|" "\-m\ "\c
|
|
.I machine\c
|
|
.RB " | " "\-\-architecture="\c
|
|
.I machine\c
|
|
\&\|]
|
|
.RB "[\|" \-r | \-\-reloc "\|]"
|
|
.RB "[\|" \-R | \-\-dynamic\-reloc "\|]"
|
|
.RB "[\|" \-s | \-\-full\-contents "\|]"
|
|
.RB "[\|" \-\-stabs "\|]"
|
|
.RB "[\|" \-t | \-\-syms "\|]"
|
|
.RB "[\|" \-T | \-\-dynamic\-syms "\|]"
|
|
.RB "[\|" \-x | \-\-all\-headers "\|]"
|
|
.RB "[\|" \-\-version "\|]"
|
|
.RB "[\|" \-\-help "\|]"
|
|
.I objfile\c
|
|
\&.\|.\|.
|
|
.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.
|
|
.PP
|
|
.IR "objfile" .\|.\|.
|
|
are the object files to be examined. When you specify archives,
|
|
\c
|
|
.B objdump\c
|
|
\& shows information on each of the member object files.
|
|
|
|
.SH OPTIONS
|
|
Where long and short forms of an option are shown together, they are
|
|
equivalent. At least one option besides
|
|
.B \-l
|
|
(\fB\-\-line\-numbers\fP) must be given.
|
|
|
|
.TP
|
|
.B \-a
|
|
.TP
|
|
.B \-\-archive\-headers
|
|
If any files from \c
|
|
.I objfile\c
|
|
\& 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
|
|
.BI "\-b " "bfdname"\c
|
|
.TP
|
|
.BI "\-\-target=" "bfdname"\c
|
|
\&
|
|
Specify the object-code format for the object files to be
|
|
\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
|
|
|
|
display summary information from the section headers (`\|\c
|
|
.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.
|
|
|
|
.TP
|
|
.B \-d
|
|
.TP
|
|
.B \-\-disassemble
|
|
Display the assembler mnemonics for the machine
|
|
instructions from \c
|
|
.I objfile\c
|
|
\&.
|
|
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.
|
|
|
|
.TP
|
|
.B \-f
|
|
.TP
|
|
.B \-\-file\-headers
|
|
Display summary information from the overall header of
|
|
each file in \c
|
|
.I objfile\c
|
|
\&.
|
|
|
|
.TP
|
|
.B \-h
|
|
.TP
|
|
.B \-\-section\-headers
|
|
.TP
|
|
.B \-\-headers
|
|
Display summary information from the section headers of the
|
|
object file.
|
|
|
|
.TP
|
|
.B \-\-help
|
|
Print a summary of the options to
|
|
.B objdump
|
|
and exit.
|
|
|
|
.TP
|
|
.B \-i
|
|
.TP
|
|
.B \-\-info
|
|
Display a list showing all architectures and object formats available
|
|
for specification with \c
|
|
.B \-b\c
|
|
\& or \c
|
|
.B \-m\c
|
|
\&.
|
|
|
|
.TP
|
|
.BI "\-j " "name"\c
|
|
.TP
|
|
.BI "\-\-section=" "name"\c
|
|
\&
|
|
Display information only for section \c
|
|
.I name\c
|
|
\&
|
|
|
|
.TP
|
|
.B \-l
|
|
.TP
|
|
.B \-\-line\-numbers
|
|
Label the display (using debugging information) with the filename
|
|
and source line numbers corresponding to the object code shown.
|
|
Only useful with \fB\-d\fP or \fB\-D\fP.
|
|
|
|
.TP
|
|
.BI "\-m " "machine"\c
|
|
.TP
|
|
.BI "\-\-architecture=" "machine"\c
|
|
\&
|
|
Specify the object files \c
|
|
.I objfile\c
|
|
\& are for architecture
|
|
\c
|
|
.I machine\c
|
|
\&. You can list available architectures using the `\|\c
|
|
.B \-i\c
|
|
\|'
|
|
option.
|
|
|
|
.TP
|
|
.B \-r
|
|
.TP
|
|
.B \-\-reloc
|
|
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.
|
|
|
|
.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.
|
|
|
|
.TP
|
|
.B \-s
|
|
.TP
|
|
.B \-\-full\-contents
|
|
Display the full contents of any sections requested.
|
|
|
|
.TP
|
|
.B \-\-stabs
|
|
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
|
|
\-\-syms output.
|
|
|
|
.TP
|
|
.B \-t
|
|
.TP
|
|
.B \-\-syms
|
|
Symbol Table. Print the symbol table entries of the file.
|
|
This is similar to the information provided by the `\|\c
|
|
.B nm\c
|
|
\|' program.
|
|
|
|
.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.
|
|
|
|
.TP
|
|
.B \-\-version
|
|
Print the version number of
|
|
.B objdump
|
|
and exit.
|
|
|
|
.TP
|
|
.B \-x
|
|
.TP
|
|
.B \-\-all\-headers
|
|
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
|
|
Copyright (c) 1991 Free Software Foundation, Inc.
|
|
.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.
|