[llvm-objdump] Printing relocations in executable and shared object files. This...
authorColin LeMahieu <colinl@codeaurora.org>
Mon, 21 Mar 2016 19:14:50 +0000 (19:14 +0000)
committerColin LeMahieu <colinl@codeaurora.org>
Mon, 21 Mar 2016 19:14:50 +0000 (19:14 +0000)
commitcdaf644c48d9f4deceb3afe6ee94a122fd3fc188
tree6746be0cf91d11136f48b61566d36c3a5521fddd
parent8d83d6db7c1277eb50d5f654ed31874dbdbbca02
[llvm-objdump] Printing relocations in executable and shared object files.  This partially reverts r215844 by removing test objdump-reloc-shared.test which stated GNU objdump doesn't print relocations, it does.

In executable and shared object ELF files, relocations in the file contain the final virtual address rather than section offset so this is adjusted to display section offset.

Differential revision: http://reviews.llvm.org/D15965

llvm-svn: 263971
llvm/include/llvm/Object/ELFObjectFile.h
llvm/test/Object/objdump-reloc-shared.test [deleted file]
llvm/test/tools/llvm-objdump/X86/Inputs/relocations-in-nonrelocatable.elf-x86_64 [new file with mode: 0644]
llvm/test/tools/llvm-objdump/X86/relocations-in-nonrelocatable.test [new file with mode: 0644]
llvm/tools/llvm-objdump/llvm-objdump.cpp