diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-09-16 01:59:30 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-09-16 01:59:30 +0000 |
commit | d5464baad0bdb3e00c15f33090d6bb9fff1fc209 (patch) | |
tree | 831ce618ff34550e92c1808c8d9bd1e27814d75b /binutils/objdump.1 | |
parent | e36830425e70e585c2071128b17cc49976f4d1a8 (diff) | |
download | gdb-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/objdump.1')
-rw-r--r-- | binutils/objdump.1 | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/binutils/objdump.1 b/binutils/objdump.1 index 4050c4b..4a9da61 100644 --- a/binutils/objdump.1 +++ b/binutils/objdump.1 @@ -22,6 +22,7 @@ objdump \- display information from object files. .I bfdname\c \&\|] .RB "[\|" \-d | \-\-disassemble "\|]" +.RB "[\|" \-D | \-\-disassemble-all "\|]" .RB "[\|" \-f | \-\-file\-headers "\|]" .RB "[\|" \-h | \-\-section\-headers .RB "| " \-\-headers "\|]" @@ -127,6 +128,15 @@ 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 @@ -178,7 +188,7 @@ Display information only for section \c .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. +Only useful with \fB\-d\fP or \fB\-D\fP. .TP .BI "\-m " "machine"\c @@ -199,7 +209,9 @@ option. .B \-r .TP .B \-\-reloc -Print the relocation entries of the file. +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 |