aboutsummaryrefslogtreecommitdiff
path: root/binutils/binutils.texi
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-09-16 01:59:30 +0000
committerIan Lance Taylor <ian@airs.com>1994-09-16 01:59:30 +0000
commitd5464baad0bdb3e00c15f33090d6bb9fff1fc209 (patch)
tree831ce618ff34550e92c1808c8d9bd1e27814d75b /binutils/binutils.texi
parente36830425e70e585c2071128b17cc49976f4d1a8 (diff)
downloadgdb-d5464baad0bdb3e00c15f33090d6bb9fff1fc209.zip
gdb-d5464baad0bdb3e00c15f33090d6bb9fff1fc209.tar.gz
gdb-d5464baad0bdb3e00c15f33090d6bb9fff1fc209.tar.bz2
* objdump.c (disassemble_all): New global variable.
(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.
Diffstat (limited to 'binutils/binutils.texi')
-rw-r--r--binutils/binutils.texi19
1 files changed, 14 insertions, 5 deletions
diff --git a/binutils/binutils.texi b/binutils/binutils.texi
index 4dc1dde..4acc69d 100644
--- a/binutils/binutils.texi
+++ b/binutils/binutils.texi
@@ -849,7 +849,8 @@ Show a summary of the options to @code{objcopy}.
@smallexample
objdump [ -a | --archive-headers ]
[ -b @var{bfdname} | --target=@var{bfdname} ]
- [ -d | --disassemble ] [ -f | --file-headers ]
+ [ -d | --disassemble ] [ -D | --disassemble-all ]
+ [ -f | --file-headers ]
[ -h | --section-headers | --headers ] [ -i | --info ]
[ -j @var{section} | --section=@var{section} ]
[ -l | --line-numbers ]
@@ -904,8 +905,14 @@ formats available with the @samp{-i} option.
@itemx --disassemble
@cindex disassembling object code
@cindex machine instructions
-Display the assembler mnemonics for the machine
-instructions from @var{objfile}.
+Display the assembler mnemonics for the machine instructions from
+@var{objfile}. This option only disassembles those sections which are
+expected to contain instructions.
+
+@item -D
+@itemx --disassemble-all
+Like @samp{-d}, but disassemble the contents of all sections, not just
+those expected to contain instructions.
@item -f
@itemx --file-header
@@ -949,7 +956,7 @@ Display information only for section @var{name}.
@cindex source filenames for object files
Label the display (using debugging information) with the filename
and source line numbers corresponding to the object code shown.
-Only useful with @samp{-d}.
+Only useful with @samp{-d} or @samp{-D}.
@item -m @var{machine}
@itemx --architecture=@var{machine}
@@ -961,7 +968,9 @@ option.
@item -r
@itemx --reloc
@cindex relocation entries, in object file
-Print the relocation entries of the file.
+Print the relocation entries of the file. If used with @samp{-d} or
+@samp{-D}, the relocations are printed interspersed with the
+disassembly.
@item -R
@itemx --dynamic-reloc