diff options
author | Rui Ueyama <ruiu@google.com> | 2013-07-18 22:44:20 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2013-07-18 22:44:20 +0000 |
commit | 06bd2061fc40bfa3560bc200c396595cc4ed3a2e (patch) | |
tree | adef2adcdab62610167d4c0b6558b3c48ae7be5c /include/llvm/Object/COFF.h | |
parent | b05ad799e7dc19d7c88576820b1cf16b43a4de9e (diff) | |
download | llvm-06bd2061fc40bfa3560bc200c396595cc4ed3a2e.tar.gz llvm-06bd2061fc40bfa3560bc200c396595cc4ed3a2e.tar.bz2 llvm-06bd2061fc40bfa3560bc200c396595cc4ed3a2e.tar.xz |
COFFDumper: Dump data directory entries.
Summary:
Dump optional data directory entries in the PE/COFF header, so that
we can test the output of LLD linker. This patch updates the test binary
file, but the source of the binary is the same. I just re-linked the file.
I don't know how the previous file was linked, but the previous file did
not have any data directory entries for some reason.
Reviewers: rafael
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1148
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186623 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Object/COFF.h')
-rw-r--r-- | include/llvm/Object/COFF.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Object/COFF.h b/include/llvm/Object/COFF.h index c7c5c7f118..21900675ff 100644 --- a/include/llvm/Object/COFF.h +++ b/include/llvm/Object/COFF.h @@ -198,6 +198,7 @@ class COFFObjectFile : public ObjectFile { private: const coff_file_header *COFFHeader; const pe32_header *PE32Header; + const data_directory *DataDirectory; const coff_section *SectionTable; const coff_symbol *SymbolTable; const char *StringTable; @@ -283,6 +284,7 @@ public: error_code getHeader(const coff_file_header *&Res) const; error_code getCOFFHeader(const coff_file_header *&Res) const; error_code getPE32Header(const pe32_header *&Res) const; + error_code getDataDirectory(uint32_t index, const data_directory *&Res) const; error_code getSection(int32_t index, const coff_section *&Res) const; error_code getSymbol(uint32_t index, const coff_symbol *&Res) const; template <typename T> |