objdump --no-addresses
authorAlan Modra <amodra@gmail.com>
Wed, 15 Apr 2020 09:56:55 +0000 (19:26 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 15 Apr 2020 09:56:55 +0000 (19:26 +0930)
commitb1bc1394df596eaaecca0c2ae89eb4fb2c204927
tree34c69589beb390d0ee52ae65511c92fa3ea332ad
parent7ecb51549ab1ec22aba5aaf34b70323cf0b8509a
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.
binutils/ChangeLog
binutils/doc/binutils.texi
binutils/objdump.c