OSDN Git Service

[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)
commitbb93856810a7337dcefb5e5970a774347659e464
tree3d997f0a048a250deecacb803e33d5c1abcfa01b
parent1f213b9b3759acaa16f39050ff3f6bf78ecd0d1c
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263971 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/ELFObjectFile.h
test/Object/objdump-reloc-shared.test [deleted file]
test/tools/llvm-objdump/X86/Inputs/relocations-in-nonrelocatable.elf-x86_64 [new file with mode: 0644]
test/tools/llvm-objdump/X86/relocations-in-nonrelocatable.test [new file with mode: 0644]
tools/llvm-objdump/llvm-objdump.cpp