aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.h
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2019-01-28 14:11:35 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2019-01-28 14:11:35 +0000
commit87fa2e66e715b0d1d457f519a6f668cc6f56e23a (patch)
treefe137ff5ed70ea7825d1b746a5345a812bcab7e7 /llvm/tools/llvm-objdump/llvm-objdump.h
parentf02e9f3783434a7440d563c046d0c677b758bb56 (diff)
downloadllvm-87fa2e66e715b0d1d457f519a6f668cc6f56e23a.zip
llvm-87fa2e66e715b0d1d457f519a6f668cc6f56e23a.tar.gz
llvm-87fa2e66e715b0d1d457f519a6f668cc6f56e23a.tar.bz2
[llvm-objdump] - Print LMAs when dumping section headers.
When --section-headers is used, GNU objdump prints both LMA and VMA for sections. llvm-objdump does not do that what makes it's output be slightly inconsistent. Patch teaches llvm-objdump to print LMA/VMA for ELF file formats. The behavior for other formats remains unchanged. Differential revision: https://reviews.llvm.org/D57146 llvm-svn: 352366
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.h')
-rw-r--r--llvm/tools/llvm-objdump/llvm-objdump.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/llvm-objdump/llvm-objdump.h b/llvm/tools/llvm-objdump/llvm-objdump.h
index 03c72b7..e559b72 100644
--- a/llvm/tools/llvm-objdump/llvm-objdump.h
+++ b/llvm/tools/llvm-objdump/llvm-objdump.h
@@ -21,6 +21,7 @@ namespace object {
class COFFObjectFile;
class COFFImportFile;
class ELFObjectFileBase;
+class ELFSectionRef;
class MachOObjectFile;
class MachOUniversalBinary;
class ObjectFile;
@@ -137,6 +138,8 @@ getMachORelocationValueString(const object::MachOObjectFile *Obj,
const object::RelocationRef &RelRef,
llvm::SmallVectorImpl<char> &Result);
+uint64_t getELFSectionLMA(const object::ELFSectionRef& Sec);
+
void error(std::error_code ec);
bool isRelocAddressLess(object::RelocationRef A, object::RelocationRef B);
void parseInputMachO(StringRef Filename);