llvm.org GIT mirror llvm / 0078935
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 Rui Ueyama 6 years ago
1 changed file(s) with 8 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
449449 uint32_t AddressOfNewExeHeader;
450450 };
451451
452 struct PEHeader {
452 struct PE32Header {
453453 enum {
454454 PE32 = 0x10b,
455455 PE32_PLUS = 0x20b
464464 uint32_t AddressOfEntryPoint; // RVA
465465 uint32_t BaseOfCode; // RVA
466466 uint32_t BaseOfData; // RVA
467 uint64_t ImageBase;
467 uint32_t ImageBase;
468468 uint32_t SectionAlignment;
469469 uint32_t FileAlignment;
470470 uint16_t MajorOperatingSystemVersion;
479479 uint32_t CheckSum;
480480 uint16_t Subsystem;
481481 uint16_t DLLCharacteristics;
482 uint64_t SizeOfStackReserve;
483 uint64_t SizeOfStackCommit;
484 uint64_t SizeOfHeapReserve;
485 uint64_t SizeOfHeapCommit;
482 uint32_t SizeOfStackReserve;
483 uint32_t SizeOfStackCommit;
484 uint32_t SizeOfHeapReserve;
485 uint32_t SizeOfHeapCommit;
486486 uint32_t LoaderFlags;
487487 uint32_t NumberOfRvaAndSize;
488488 };
489
490 typedef PE32Header PEHeader;
489491
490492 struct DataDirectory {
491493 uint32_t RelativeVirtualAddress;