[llvm-objdump] Fix 'llvm-objdump -dr' for executables with relocations
authorMaksim Panchenko <maks@fb.com>
Tue, 31 Aug 2021 18:53:54 +0000 (11:53 -0700)
committerMaksim Panchenko <maks@fb.com>
Tue, 7 Sep 2021 18:24:24 +0000 (11:24 -0700)
commit6300e4ac5806c9255c68c6fada37b2ce70efc524
tree285719ed7c2197e6c2222355329cd14c7643495c
parentb81fc14f2da1800432e864c27abb01c1a219a97e
[llvm-objdump] Fix 'llvm-objdump -dr' for executables with relocations

Print relocations interleaved with disassembled instructions for
executables with relocatable sections, e.g. those built with "-Wl,-q".

Differential Revision: https://reviews.llvm.org/D109016
llvm/test/tools/llvm-objdump/X86/elf-disassemble-relocs-exec.test [new file with mode: 0644]
llvm/tools/llvm-objdump/llvm-objdump.cpp