19 #define ECase(X) IO.enumCase(Value, #X, COFF::X); 33 void ScalarEnumerationTraits<COFFYAML::COMDATType>::enumeration(
35 IO.enumCase(Value,
"0", 0);
46 ScalarEnumerationTraits<COFFYAML::WeakExternalCharacteristics>::enumeration(
48 IO.enumCase(Value,
"0", 0);
54 void ScalarEnumerationTraits<COFFYAML::AuxSymbolType>::enumeration(
59 void ScalarEnumerationTraits<COFF::MachineTypes>::enumeration(
85 void ScalarEnumerationTraits<COFF::SymbolBaseType>::enumeration(
105 void ScalarEnumerationTraits<COFF::SymbolStorageClass>::enumeration(
136 void ScalarEnumerationTraits<COFF::SymbolComplexType>::enumeration(
144 void ScalarEnumerationTraits<COFF::RelocationTypeI386>::enumeration(
159 void ScalarEnumerationTraits<COFF::RelocationTypeAMD64>::enumeration(
180 void ScalarEnumerationTraits<COFF::RelocationTypesARM>::enumeration(
201 void ScalarEnumerationTraits<COFF::RelocationTypesARM64>::enumeration(
223 void ScalarEnumerationTraits<COFF::WindowsSubsystem>::enumeration(
242 #define BCase(X) IO.bitSetCase(Value, #X, COFF::X); 243 void ScalarBitSetTraits<COFF::Characteristics>::bitset(
262 void ScalarBitSetTraits<COFF::SectionCharacteristics>::bitset(
288 void ScalarBitSetTraits<COFF::DLLCharacteristics>::bitset(
306 struct NSectionSelectionType {
307 NSectionSelectionType(IO &)
309 NSectionSelectionType(IO &, uint8_t
C)
317 struct NWeakExternalCharacteristics {
318 NWeakExternalCharacteristics(IO &)
320 NWeakExternalCharacteristics(IO &,
uint32_t C)
328 struct NSectionCharacteristics {
329 NSectionCharacteristics(IO &)
331 NSectionCharacteristics(IO &,
uint32_t C)
339 struct NAuxTokenType {
342 NAuxTokenType(IO &, uint8_t
C)
350 struct NStorageClass {
368 struct NHeaderCharacteristics {
378 template <
typename RelocType>
380 NType(IO &) : Type(RelocType(0)) {}
381 NType(IO &,
uint16_t T) : Type(RelocType(T)) {}
383 uint16_t denormalize(IO &) {
return Type; }
388 struct NWindowsSubsystem {
397 struct NDLLCharacteristics {
417 MappingNormalization<NType<COFF::RelocationTypeI386>,
uint16_t> NT(
419 IO.mapRequired(
"Type", NT->Type);
421 MappingNormalization<NType<COFF::RelocationTypeAMD64>,
uint16_t> NT(
423 IO.mapRequired(
"Type", NT->Type);
425 MappingNormalization<NType<COFF::RelocationTypesARM>,
uint16_t> NT(
427 IO.mapRequired(
"Type", NT->Type);
429 MappingNormalization<NType<COFF::RelocationTypesARM64>,
uint16_t> NT(
431 IO.mapRequired(
"Type", NT->Type);
433 IO.mapRequired(
"Type", Rel.
Type);
440 IO.mapRequired(
"Size", DD.
Size);
445 MappingNormalization<NWindowsSubsystem, uint16_t> NWS(IO,
447 MappingNormalization<NDLLCharacteristics, uint16_t> NDC(
454 IO.mapRequired(
"MajorOperatingSystemVersion",
456 IO.mapRequired(
"MinorOperatingSystemVersion",
462 IO.mapRequired(
"Subsystem", NWS->Subsystem);
463 IO.mapRequired(
"DLLCharacteristics", NDC->Characteristics);
474 IO.mapOptional(
"BaseRelocationTable",
480 IO.mapOptional(
"LoadConfigTable",
484 IO.mapOptional(
"DelayImportDescriptor",
486 IO.mapOptional(
"ClrRuntimeHeader",
491 MappingNormalization<NMachine, uint16_t> NM(IO, H.
Machine);
492 MappingNormalization<NHeaderCharacteristics, uint16_t>
NC(IO,
495 IO.mapRequired(
"Machine", NM->Machine);
496 IO.mapOptional(
"Characteristics", NC->Characteristics);
497 IO.setContext(static_cast<void *>(&H));
502 IO.mapRequired(
"TagIndex", AFD.
TagIndex);
503 IO.mapRequired(
"TotalSize", AFD.
TotalSize);
516 MappingNormalization<NWeakExternalCharacteristics, uint32_t> NWEC(
518 IO.mapRequired(
"TagIndex", AWE.
TagIndex);
519 IO.mapRequired(
"Characteristics", NWEC->Characteristics);
524 MappingNormalization<NSectionSelectionType, uint8_t> NSST(
527 IO.mapRequired(
"Length", ASD.
Length);
530 IO.mapRequired(
"CheckSum", ASD.
CheckSum);
531 IO.mapRequired(
"Number", ASD.
Number);
537 MappingNormalization<NAuxTokenType, uint8_t> NATT(IO, ACT.
AuxType);
538 IO.mapRequired(
"AuxType", NATT->AuxType);
545 IO.mapRequired(
"Name", S.
Name);
550 IO.mapRequired(
"StorageClass", NS->StorageClass);
556 IO.mapOptional(
"CLRToken", S.
CLRToken);
560 MappingNormalization<NSectionCharacteristics, uint32_t>
NC(
562 IO.mapRequired(
"Name", Sec.
Name);
563 IO.mapRequired(
"Characteristics", NC->Characteristics);
566 IO.mapOptional(
"Alignment", Sec.
Alignment, 0U);
572 if (Sec.
Name ==
".debug$S")
573 IO.mapOptional(
"Subsections", Sec.
DebugS);
574 else if (Sec.
Name ==
".debug$T")
575 IO.mapOptional(
"Types", Sec.
DebugT);
576 else if (Sec.
Name ==
".debug$P")
577 IO.mapOptional(
"PrecompTypes", Sec.
DebugP);
578 else if (Sec.
Name ==
".debug$H")
579 IO.mapOptional(
"GlobalHashes", Sec.
DebugH);
591 IO.mapTag(
"!COFF",
true);
593 IO.mapRequired(
"header", Obj.
Header);
594 IO.mapRequired(
"sections", Obj.
Sections);
595 IO.mapRequired(
"symbols", Obj.
Symbols);
Debugging info has been removed.
Isolation aware, but do not isolate the image.
The Windows GUI subsystem.
The POSIX character subsystem.
WeakExternalCharacteristics
COFF::SymbolBaseType SimpleType
This class represents lattice values for constants.
Physical end of function.
uint32_t SymbolTableIndex
Optional< COFF::AuxiliarybfAndefSymbol > bfAndefSymbol
Used with void pointers and functions.
An EFI driver with boot services.
Code integrity checks are enforced.
COFF::SymbolStorageClass StorageClass
No complex type; simple scalar variable.
An unsigned integer of natural size.
Machine is based on a 32bit word architecture.
".bf" or ".ef" - beginning or end of function
An 8-byte floating-point number.
std::vector< Relocation > Relocations
Aggressively trim working set. This is deprecated and must be 0.
An unsigned 4-byte integer.
External symbol in dmert public lib.
std::vector< Section > Sections
Big endian: the MSB precedes the LSB in memory.
ASLR with 64 bit address space.
COFFYAML::COMDATType SelectionType
The file does not contain base relocations and must be loaded at its preferred base.
COFF::MachineTypes Machine
Does not use structured exception handling (SEH).
uint16_t NumberOfRelocations
std::vector< CodeViewYAML::LeafRecord > DebugP
COFF::WindowsSubsystem Subsystem
Image can handle > 2GiB addresses.
Line number, reformatted as symbol.
No type information or unknown base type.
Little endian: the LSB precedes the MSB in memory.
A member of enumeration (a specific value).
Native Windows 9x driver.
COFF line numbers have been stripped.
Device drivers and native Windows processes.
ArrayRef< uint8_t >::size_type binary_size() const
The number of bytes that are represented by this BinaryRef.
yaml::BinaryRef SectionData
The image file is a system file, not a user program.
Optional< COFF::AuxiliaryFunctionDefinition > FunctionDefinition
COFFYAML::AuxSymbolType AuxType
std::vector< CodeViewYAML::LeafRecord > DebugT
Optional< COFF::AuxiliaryCLRToken > CLRToken
Image supports Control Flow Guard.
uint32_t PointerToNextFunction
An EFI driver with run-time services.
uint32_t RelativeVirtualAddress
SymbolStorageClass
Storage class tells where and what the symbol represents.
".bb" or ".eb" - beginning or end of block
A byte; unsigned 1-byte integer.
If the image is on removable media, fully load it and copy it to swap.
If the image is on network media, fully load it and copy it to swap.
The file is valid and can be run.
A natural integer type on the target.
The OS/2 character subsytem.
COFF symbol table entries for local symbols have been removed.
DLL can be relocated at load time.
Optional< COFF::AuxiliaryWeakExternal > WeakExternal
COFFYAML::WeakExternalCharacteristics Characteristics
This file should only be run on a uniprocessor machine.
A 4-byte floating-point number.
A word; unsigned 2-byte integer.
uint32_t PointerToNextFunction
The Windows character subsystem.
uint32_t PointerToLinenumber
std::vector< CodeViewYAML::YAMLDebugSubsection > DebugS
Optional< uint32_t > SymbolTableIndex
LLVM Value Representation.
std::vector< Symbol > Symbols
A character (signed byte).
StringRef - Represent a constant reference to a string, i.e.
COFF::SymbolComplexType ComplexType
Optional< CodeViewYAML::DebugHSection > DebugH
Optional< PEHeader > OptionalHeader
uint16_t NumberOfLinenumbers
Optional< COFF::AuxiliarySectionDefinition > SectionDefinition
A function that returns a base type.