HomePhabricator

[llvm-objdump] - Print symbol addressed when dumping disassembly output (-d)

Description

[llvm-objdump] - Print symbol addressed when dumping disassembly output (-d)

When GNU objdump dumps the input with -d it prints the symbol addresses,
for example:

0000000000000031 <foo>:

31:	00 00                	add    %al,(%rax)

...

llvm-objdump currently does not do that.
Patch changes the behavior to match the GNU objdump.

That is useful for implementing -z/--disassemble-zeroes (D56083),
it allows omitting first zero bytes and keep the information
about the symbol address in the output.

Differential revision: https://reviews.llvm.org/D56123

Details

Committed
grimarWed, Jan 9, 6:43 AM
Differential Revision
D56123: [llvm-objdump] - Print symbol addressed when dumping disassembly output (-d)
Parents
rL350725: Fix typo in comment
Branches
Unknown
Tags
Unknown