[PATCH] D102296: [ELF] getRelocatedSection: remove the check for ET_REL object file
Maksim Panchenko via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 30 20:31:54 PDT 2021
maksfb added a comment.
`llvm-objdump -dr` seems to be broken when invoked on executables with relocations. Prior to this diff, `llvm-objdump` would simply not print relocations in executables while disassembling instructions, but now it's hitting the assertion since it started seeing the relocations. The problem is that relocation offsets are not adjusted wrt the section address.
Nick, you can drop `-r` flag to unblock you. The effect should be identical to reverting this diff. But if you want to see relocations interleaved with disassembly, we need to fix `llvm-objdump`. I can take a look at that.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102296/new/
https://reviews.llvm.org/D102296
More information about the llvm-commits
mailing list