aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--binutils/binutils.texi18
-rw-r--r--binutils/objdump.126
2 files changed, 32 insertions, 12 deletions
diff --git a/binutils/binutils.texi b/binutils/binutils.texi
index 8014592..3b0f486 100644
--- a/binutils/binutils.texi
+++ b/binutils/binutils.texi
@@ -1017,6 +1017,7 @@ Show a summary of the options to @code{objcopy}.
objdump [ -a | --archive-headers ]
[ -b @var{bfdname} | --target=@var{bfdname} ] [ --debugging ]
[ -d | --disassemble ] [ -D | --disassemble-all ]
+ [ -EB | -EL | --endian=@{big | little @} ]
[ -f | --file-headers ]
[ -h | --section-headers | --headers ] [ -i | --info ]
[ -j @var{section} | --section=@var{section} ]
@@ -1089,6 +1090,15 @@ expected to contain instructions.
Like @samp{-d}, but disassemble the contents of all sections, not just
those expected to contain instructions.
+@item -EB
+@itemx -EL
+@itemx --endian=@{big|little@}
+@cindex endianness
+@cindex disassembly endianness
+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.
+
@item -f
@itemx --file-header
@cindex object file header
@@ -1136,9 +1146,11 @@ Only useful with @samp{-d}, @samp{-D}, or @samp{-r}.
@item -m @var{machine}
@itemx --architecture=@var{machine}
@cindex architecture
-Specify that the object files @var{objfile} are for architecture
-@var{machine}. You can list available architectures using the @samp{-i}
-option.
+@cindex disassembly architecture
+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 @samp{-i} option.
@item -r
@itemx --reloc
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