mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-10 14:10:58 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200038 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
82f50dc0c2
commit
0078935812
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user