summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2014-01-24 20:54:10 +0000
committerRui Ueyama <ruiu@google.com>2014-01-24 20:54:10 +0000
commitfa5900a634fe4c594b139fbb7fcd853971c64ac9 (patch)
tree77ff2d0fe8b19fd33f6138e69937771bb684a9e6 /llvm
parent3f9978e65ab05c53422f6b993d15e33b2c59dc9d (diff)
downloadbcm5719-llvm-fa5900a634fe4c594b139fbb7fcd853971c64ac9.tar.gz
bcm5719-llvm-fa5900a634fe4c594b139fbb7fcd853971c64ac9.zip
Support/COFF: Fix PEHeader struct, and define PE32Header as its alias.
This change does not affect anything because everybody seems to be using Object/COFF.h instead. But the definition is not for PE32 but for PE32+, so fix it anyway. llvm-svn: 200038
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Support/COFF.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/llvm/include/llvm/Support/COFF.h b/llvm/include/llvm/Support/COFF.h
index d9529dcc38b..a6f319fb7d4 100644
--- a/llvm/include/llvm/Support/COFF.h
+++ b/llvm/include/llvm/Support/COFF.h
@@ -450,7 +450,7 @@ namespace COFF {
uint32_t AddressOfNewExeHeader;
};
- struct PEHeader {
+ struct PE32Header {
enum {
PE32 = 0x10b,
PE32_PLUS = 0x20b
@@ -465,7 +465,7 @@ namespace COFF {
uint32_t AddressOfEntryPoint; // RVA
uint32_t BaseOfCode; // RVA
uint32_t BaseOfData; // RVA
- uint64_t ImageBase;
+ uint32_t ImageBase;
uint32_t SectionAlignment;
uint32_t FileAlignment;
uint16_t MajorOperatingSystemVersion;
@@ -480,14 +480,16 @@ namespace COFF {
uint32_t CheckSum;
uint16_t Subsystem;
uint16_t DLLCharacteristics;
- uint64_t SizeOfStackReserve;
- uint64_t SizeOfStackCommit;
- uint64_t SizeOfHeapReserve;
- uint64_t SizeOfHeapCommit;
+ uint32_t SizeOfStackReserve;
+ uint32_t SizeOfStackCommit;
+ uint32_t SizeOfHeapReserve;
+ uint32_t SizeOfHeapCommit;
uint32_t LoaderFlags;
uint32_t NumberOfRvaAndSize;
};
+ typedef PE32Header PEHeader;
+
struct DataDirectory {
uint32_t RelativeVirtualAddress;
uint32_t Size;
OpenPOWER on IntegriCloud