diff options
author | Colin LeMahieu <colinl@codeaurora.org> | 2016-03-21 19:14:50 +0000 |
---|---|---|
committer | Colin LeMahieu <colinl@codeaurora.org> | 2016-03-21 19:14:50 +0000 |
commit | cdaf644c48d9f4deceb3afe6ee94a122fd3fc188 (patch) | |
tree | 6746be0cf91d11136f48b61566d36c3a5521fddd /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | 8d83d6db7c1277eb50d5f654ed31874dbdbbca02 (diff) | |
download | bcm5719-llvm-cdaf644c48d9f4deceb3afe6ee94a122fd3fc188.tar.gz bcm5719-llvm-cdaf644c48d9f4deceb3afe6ee94a122fd3fc188.zip |
[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
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
-rw-r--r-- | llvm/tools/llvm-objdump/llvm-objdump.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp index f436183f065..7f49efd8f84 100644 --- a/llvm/tools/llvm-objdump/llvm-objdump.cpp +++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp @@ -1188,10 +1188,6 @@ static void DisassembleObject(const ObjectFile *Obj, bool InlineRelocs) { void llvm::PrintRelocations(const ObjectFile *Obj) { StringRef Fmt = Obj->getBytesInAddress() > 4 ? "%016" PRIx64 : "%08" PRIx64; - // Regular objdump doesn't print relocations in non-relocatable object - // files. - if (!Obj->isRelocatableObject()) - return; for (const SectionRef &Section : ToolSectionFilter(*Obj)) { if (Section.relocation_begin() == Section.relocation_end()) |