From f8edf9fca9fbfbbabc11d598d6f4e39a346c418a Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Fri, 6 Dec 2013 01:06:04 +0000 Subject: [PATCH] Object/COFF: Add export table entry structs. Differential Revision: http://llvm-reviews.chandlerc.com/D2335 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196556 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Object/COFF.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/include/llvm/Object/COFF.h b/include/llvm/Object/COFF.h index e05ae6c654c..239cb1b9880 100644 --- a/include/llvm/Object/COFF.h +++ b/include/llvm/Object/COFF.h @@ -157,6 +157,28 @@ struct import_lookup_table_entry32 { } }; +struct export_directory_table_entry { + support::ulittle32_t ExportFlags; + support::ulittle32_t TimeDateStamp; + support::ulittle16_t MajorVersion; + support::ulittle16_t MinorVersion; + support::ulittle32_t NameRVA; + support::ulittle32_t OrdinalBase; + support::ulittle32_t AddressTableEntries; + support::ulittle32_t NumberOfNamePointers; + support::ulittle32_t ExportAddressTableRVA; + support::ulittle32_t NamePointerRVA; + support::ulittle32_t OrdinalTableRVA; +}; + +struct export_address_table_entry { + support::ulittle32_t ExportRVA; + support::ulittle32_t ForwarderRVA; +}; + +typedef support::ulittle32_t export_name_pointer_table_entry; +typedef support::ulittle16_t export_ordinal_table_entry; + struct coff_symbol { struct StringTableOffset { support::ulittle32_t Zeroes;