mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
fa20edc44d
- Remove most __ASSEMBLER__ __LINKER__ ifdefs - Rename libc/intrin/bits.h to libc/serialize.h - Block pthread cancelation in fchmodat() polyfill - Remove `clang-format off` statements in third_party
37 lines
925 B
C
37 lines
925 B
C
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEFILEHEADER_H_
|
|
#define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEFILEHEADER_H_
|
|
|
|
struct NtImageFileHeader {
|
|
|
|
/*
|
|
* E.g. kNtImageFileMachineNexgen32e
|
|
*/
|
|
uint16_t Machine;
|
|
|
|
/*
|
|
* The number of sections. This indicates the size of the section
|
|
* table, which immediately follows the headers.
|
|
*/
|
|
uint16_t NumberOfSections;
|
|
|
|
uint32_t TimeDateStamp;
|
|
|
|
uint32_t PointerToSymbolTable;
|
|
|
|
uint32_t NumberOfSymbols;
|
|
|
|
/*
|
|
* [file size] The size of the optional header, which is required for
|
|
* executable files but not for object files. This value should be
|
|
* zero for an object file. For a description of the header format,
|
|
* see Optional Header (Image Only).
|
|
*/
|
|
uint16_t SizeOfOptionalHeader;
|
|
|
|
/*
|
|
* E.g. kNtPeFileExecutableImage | kNtImageFileLargeAddressAware
|
|
*/
|
|
uint16_t Characteristics;
|
|
};
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEFILEHEADER_H_ */
|