summaryrefslogtreecommitdiff
path: root/binutils/doc
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-04-15 19:26:55 +0930
committerAlan Modra <amodra@gmail.com>2020-04-15 19:26:55 +0930
commitb1bc1394df596eaaecca0c2ae89eb4fb2c204927 (patch)
tree34c69589beb390d0ee52ae65511c92fa3ea332ad /binutils/doc
parent7ecb51549ab1ec22aba5aaf34b70323cf0b8509a (diff)
objdump --no-addresses
I find this useful when needing to compare compiler output, where the address of the instruction and the value of symbols results in unwanted differences. * objdump.c (no_addresses): New static var. (usage): Print help for --no-addresses. (long_options): Add --no-addresses entry. (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address. (disassemble_bytes): Don't print current line address, or reloc address. * doc/binutils.texi: Document objdump --no-addresses.
Diffstat (limited to 'binutils/doc')
-rw-r--r--binutils/doc/binutils.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi
index de3f1babb2..b78154a8ef 100644
--- a/binutils/doc/binutils.texi
+++ b/binutils/doc/binutils.texi
@@ -2161,6 +2161,7 @@ objdump [@option{-a}|@option{--archive-headers}]
[@option{-w}|@option{--wide}]
[@option{--start-address=}@var{address}]
[@option{--stop-address=}@var{address}]
+ [@option{--no-addresses}]
[@option{--prefix-addresses}]
[@option{--[no-]show-raw-insn}]
[@option{--adjust-vma=}@var{offset}]
@@ -2314,6 +2315,10 @@ Note if the @option{--dwarf=follow-links} option has also been enabled
then any symbol tables in linked debug info files will be read in and
used when disassembling.
+@item --no-addresses
+When disassembling, don't print addresses on each line or for symbols
+and relocation offsets.
+
@item --prefix-addresses
When disassembling, print the complete address on each line. This is
the older disassembly format.