[llvm] r197204 - Object/COFF: ExportAddressTableEntry is a union of two RVAs.

Rui Ueyama ruiu at google.com
Thu Dec 12 21:19:17 PST 2013


Author: ruiu
Date: Thu Dec 12 23:19:17 2013
New Revision: 197204

URL: http://llvm.org/viewvc/llvm-project?rev=197204&view=rev
Log:
Object/COFF: ExportAddressTableEntry is a union of two RVAs.

The previous definition was wrong. See Microsoft PE/COFF specification
section 5.3.2.

Modified:
    llvm/trunk/include/llvm/Object/COFF.h

Modified: llvm/trunk/include/llvm/Object/COFF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/COFF.h?rev=197204&r1=197203&r2=197204&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/COFF.h (original)
+++ llvm/trunk/include/llvm/Object/COFF.h Thu Dec 12 23:19:17 2013
@@ -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;
 };





More information about the llvm-commits mailing list