aboutsummaryrefslogtreecommitdiff
path: root/binutils/objdump.1
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-06-24 20:49:28 +0000
committerIan Lance Taylor <ian@airs.com>1996-06-24 20:49:28 +0000
commit67c8c9014191526995d1e815a089298b1203e84f (patch)
treee55180634fc620bf11f709e1085c6bb92ca13bc7 /binutils/objdump.1
parent58f8c779f7d447cc7d7842a7e75957dbe00b0c9e (diff)
downloadgdb-67c8c9014191526995d1e815a089298b1203e84f.zip
gdb-67c8c9014191526995d1e815a089298b1203e84f.tar.gz
gdb-67c8c9014191526995d1e815a089298b1203e84f.tar.bz2
* objdump.c (endian): New static variable.
(usage): Mention -EB/-EL/--endian. (long_options): Add "endian". (disassemble_data): If endianness was specified, replace abfd->xvec with a copy of itself with the given endianness. (main): Handle -EB/-EL/--endian. * binutils.texi, objdump.1: Mention -EB/-EL/--endian.
Diffstat (limited to 'binutils/objdump.1')
-rw-r--r--binutils/objdump.126
1 files changed, 17 insertions, 9 deletions
diff --git a/binutils/objdump.1 b/binutils/objdump.1
index fba8d6b..8e29249 100644
--- a/binutils/objdump.1
+++ b/binutils/objdump.1
@@ -24,6 +24,9 @@ objdump \- display information from object files.
.RB "[\|" \-\-debugging "\|]"
.RB "[\|" \-d | \-\-disassemble "\|]"
.RB "[\|" \-D | \-\-disassemble-all "\|]"
+.RB "[\|" \-EB | \-EL | \-\-endian=\c
+.I {big|little}\c
+\&\|]
.RB "[\|" \-f | \-\-file\-headers "\|]"
.RB "[\|" \-h | \-\-section\-headers
.RB "| " \-\-headers "\|]"
@@ -152,6 +155,16 @@ Like \fB\-d\fP, but disassemble the contents of all sections, not just
those expected to contain instructions.
.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.
+
+.TP
.B \-f
.TP
.B \-\-file\-headers
@@ -206,15 +219,10 @@ Only useful with \fB\-d\fP, \fB\-D\fP, or \fB\-r\fP.
.BI "\-m " "machine"\c
.TP
.BI "\-\-architecture=" "machine"
-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.
+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.
.TP
.B \-r