Object/COFF: ExportAddressTableEntry is a union of two RVAs.
authorRui Ueyama <ruiu@google.com>
Fri, 13 Dec 2013 05:19:17 +0000 (05:19 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 13 Dec 2013 05:19:17 +0000 (05:19 +0000)
The previous definition was wrong. See Microsoft PE/COFF specification
section 5.3.2.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197204 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Object/COFF.h

index 239cb1b988031e2ae3a946d93dbfb558e2dbb135..aaffbbcb5e793745c5015c0f7d5e36f5741addd0 100644 (file)
@@ -171,7 +171,7 @@ struct export_directory_table_entry {
   support::ulittle32_t OrdinalTableRVA;
 };
 
-struct export_address_table_entry {
+union export_address_table_entry {
   support::ulittle32_t ExportRVA;
   support::ulittle32_t ForwarderRVA;
 };