llvm::COFF::PE32Header

PE32/PE32+ optional header fields shared by both formats.

Synopsis

Declared in <llvm/BinaryFormat/COFF.h>

struct PE32Header;

Enums

NameDescription
Unnamed enum Magic values identifying PE32 vs PE32+ optional headers.

Data Members

NameDescription
AddressOfEntryPoint RVA of the entry point.
BaseOfCode RVA of the start of the code section.
BaseOfData RVA of the start of the data section (PE32 only).
CheckSum Image checksum.
DLLCharacteristics DLL characteristic flags.
FileAlignment Alignment of raw section data in the file.
ImageBase Preferred base address of the image.
LoaderFlags Reserved; must be zero.
Magic Optional-header magic (PE32 or PE32+).
MajorImageVersion Major image version.
MajorLinkerVersion Linker major version number.
MajorOperatingSystemVersion Major OS version required.
MajorSubsystemVersion Major subsystem version.
MinorImageVersion Minor image version.
MinorLinkerVersion Linker minor version number.
MinorOperatingSystemVersion Minor OS version required.
MinorSubsystemVersion Minor subsystem version.
NumberOfRvaAndSize Number of data-directory entries.
SectionAlignment Alignment of sections in memory.
SizeOfCode Size of all code sections.
SizeOfHeaders Combined size of headers, aligned to FileAlignment.
SizeOfHeapCommit Size of the local heap space to commit.
SizeOfHeapReserve Size of the local heap space to reserve.
SizeOfImage Size of the image including headers, aligned.
SizeOfInitializedData Size of all initialized data sections.
SizeOfStackCommit Size of the stack to commit.
SizeOfStackReserve Size of the stack to reserve.
SizeOfUninitializedData Size of all uninitialized data sections.
Subsystem Windows subsystem (WindowsSubsystem).
Win32VersionValue Reserved; must be zero.