aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2019-01-28 16:36:12 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2019-01-28 16:36:12 +0000
commit4463ebe4a75dfcf6633bbda8f4b6a466750e6da3 (patch)
tree5a06b9328204c4f258db114c999b38855a7a188a /llvm/tools/llvm-objdump/llvm-objdump.cpp
parenta50cce2266b07ef762a5cb6b6cb644aa01969873 (diff)
downloadllvm-4463ebe4a75dfcf6633bbda8f4b6a466750e6da3.zip
llvm-4463ebe4a75dfcf6633bbda8f4b6a466750e6da3.tar.gz
llvm-4463ebe4a75dfcf6633bbda8f4b6a466750e6da3.tar.bz2
[llvm-objdump] - Restore a piece of code removed by mistake in r352366.
Seems when committed the r352366 ("[llvm-objdump] - Print LMAs when dumping section headers.") I resolved merge conflict incorrectly and removed this piece by mistake. Bots did not catch this yet, seems they are slow today, but the `X86/adjust-vma.test` test case fails locally for me without that. llvm-svn: 352383
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
-rw-r--r--llvm/tools/llvm-objdump/llvm-objdump.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp
index 1ba0cfc..87ed8bb 100644
--- a/llvm/tools/llvm-objdump/llvm-objdump.cpp
+++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp
@@ -1547,6 +1547,9 @@ void llvm::printSectionHeaders(const ObjectFile *Obj) {
StringRef Name;
error(Section.getName(Name));
uint64_t VMA = Section.getAddress();
+ if (shouldAdjustVA(Section))
+ VMA += AdjustVMA;
+
uint64_t Size = Section.getSize();
bool Text = Section.isText();
bool Data = Section.isData();