Lines Matching refs:COFF
19 #define ECase(X) IO.enumCase(Value, #X, COFF::X);
25 Section::Section() { memset(&Header, 0, sizeof(COFF::section)); } in Section()
26 Symbol::Symbol() { memset(&Header, 0, sizeof(COFF::symbol)); } in Symbol()
27 Object::Object() { memset(&Header, 0, sizeof(COFF::header)); } in Object()
60 void ScalarEnumerationTraits<COFF::MachineTypes>::enumeration( in enumeration()
61 IO &IO, COFF::MachineTypes &Value) { in enumeration()
91 void ScalarEnumerationTraits<COFF::SymbolBaseType>::enumeration( in enumeration()
92 IO &IO, COFF::SymbolBaseType &Value) { in enumeration()
111 void ScalarEnumerationTraits<COFF::SymbolStorageClass>::enumeration( in enumeration()
112 IO &IO, COFF::SymbolStorageClass &Value) { in enumeration()
142 void ScalarEnumerationTraits<COFF::SymbolComplexType>::enumeration( in enumeration()
143 IO &IO, COFF::SymbolComplexType &Value) { in enumeration()
150 void ScalarEnumerationTraits<COFF::RelocationTypeI386>::enumeration( in enumeration()
151 IO &IO, COFF::RelocationTypeI386 &Value) { in enumeration()
165 void ScalarEnumerationTraits<COFF::RelocationTypeAMD64>::enumeration( in enumeration()
166 IO &IO, COFF::RelocationTypeAMD64 &Value) { in enumeration()
186 void ScalarEnumerationTraits<COFF::RelocationTypesARM>::enumeration( in enumeration()
187 IO &IO, COFF::RelocationTypesARM &Value) { in enumeration()
207 void ScalarEnumerationTraits<COFF::RelocationTypesARM64>::enumeration( in enumeration()
208 IO &IO, COFF::RelocationTypesARM64 &Value) { in enumeration()
229 void ScalarEnumerationTraits<COFF::WindowsSubsystem>::enumeration( in enumeration()
230 IO &IO, COFF::WindowsSubsystem &Value) { in enumeration()
248 #define BCase(X) IO.bitSetCase(Value, #X, COFF::X);
249 void ScalarBitSetTraits<COFF::Characteristics>::bitset( in bitset()
250 IO &IO, COFF::Characteristics &Value) { in bitset()
268 void ScalarBitSetTraits<COFF::SectionCharacteristics>::bitset( in bitset()
269 IO &IO, COFF::SectionCharacteristics &Value) { in bitset()
294 void ScalarBitSetTraits<COFF::DLLCharacteristics>::bitset( in bitset()
295 IO &IO, COFF::DLLCharacteristics &Value) { in bitset()
336 : Characteristics(COFF::SectionCharacteristics(0)) {} in NSectionCharacteristics()
338 : Characteristics(COFF::SectionCharacteristics(C)) {} in NSectionCharacteristics()
342 COFF::SectionCharacteristics Characteristics;
357 NStorageClass(IO &) : StorageClass(COFF::SymbolStorageClass(0)) {} in NStorageClass()
358 NStorageClass(IO &, uint8_t S) : StorageClass(COFF::SymbolStorageClass(S)) {} in NStorageClass()
362 COFF::SymbolStorageClass StorageClass;
366 NMachine(IO &) : Machine(COFF::MachineTypes(0)) {} in NMachine()
367 NMachine(IO &, uint16_t M) : Machine(COFF::MachineTypes(M)) {} in NMachine()
371 COFF::MachineTypes Machine;
375 NHeaderCharacteristics(IO &) : Characteristics(COFF::Characteristics(0)) {} in NHeaderCharacteristics()
377 : Characteristics(COFF::Characteristics(C)) {} in NHeaderCharacteristics()
381 COFF::Characteristics Characteristics;
395 NWindowsSubsystem(IO &) : Subsystem(COFF::WindowsSubsystem(0)) {} in NWindowsSubsystem()
396 NWindowsSubsystem(IO &, uint16_t C) : Subsystem(COFF::WindowsSubsystem(C)) {} in NWindowsSubsystem()
400 COFF::WindowsSubsystem Subsystem;
404 NDLLCharacteristics(IO &) : Characteristics(COFF::DLLCharacteristics(0)) {} in NDLLCharacteristics()
406 : Characteristics(COFF::DLLCharacteristics(C)) {} in NDLLCharacteristics()
410 COFF::DLLCharacteristics Characteristics;
421 COFF::header &H = *static_cast<COFF::header *>(IO.getContext()); in mapping()
422 if (H.Machine == COFF::IMAGE_FILE_MACHINE_I386) { in mapping()
423 MappingNormalization<NType<COFF::RelocationTypeI386>, uint16_t> NT( in mapping()
426 } else if (H.Machine == COFF::IMAGE_FILE_MACHINE_AMD64) { in mapping()
427 MappingNormalization<NType<COFF::RelocationTypeAMD64>, uint16_t> NT( in mapping()
430 } else if (H.Machine == COFF::IMAGE_FILE_MACHINE_ARMNT) { in mapping()
431 MappingNormalization<NType<COFF::RelocationTypesARM>, uint16_t> NT( in mapping()
434 } else if (COFF::isAnyArm64(H.Machine)) { in mapping()
435 MappingNormalization<NType<COFF::RelocationTypesARM64>, uint16_t> NT( in mapping()
443 void MappingTraits<COFF::DataDirectory>::mapping(IO &IO, in mapping()
444 COFF::DataDirectory &DD) { in mapping()
476 COFF::NUM_DATA_DIRECTORIES + 1); in mapping()
477 IO.mapOptional("ExportTable", PH.DataDirectories[COFF::EXPORT_TABLE]); in mapping()
478 IO.mapOptional("ImportTable", PH.DataDirectories[COFF::IMPORT_TABLE]); in mapping()
479 IO.mapOptional("ResourceTable", PH.DataDirectories[COFF::RESOURCE_TABLE]); in mapping()
480 IO.mapOptional("ExceptionTable", PH.DataDirectories[COFF::EXCEPTION_TABLE]); in mapping()
481 IO.mapOptional("CertificateTable", PH.DataDirectories[COFF::CERTIFICATE_TABLE]); in mapping()
483 PH.DataDirectories[COFF::BASE_RELOCATION_TABLE]); in mapping()
484 IO.mapOptional("Debug", PH.DataDirectories[COFF::DEBUG_DIRECTORY]); in mapping()
485 IO.mapOptional("Architecture", PH.DataDirectories[COFF::ARCHITECTURE]); in mapping()
486 IO.mapOptional("GlobalPtr", PH.DataDirectories[COFF::GLOBAL_PTR]); in mapping()
487 IO.mapOptional("TlsTable", PH.DataDirectories[COFF::TLS_TABLE]); in mapping()
489 PH.DataDirectories[COFF::LOAD_CONFIG_TABLE]); in mapping()
490 IO.mapOptional("BoundImport", PH.DataDirectories[COFF::BOUND_IMPORT]); in mapping()
491 IO.mapOptional("IAT", PH.DataDirectories[COFF::IAT]); in mapping()
493 PH.DataDirectories[COFF::DELAY_IMPORT_DESCRIPTOR]); in mapping()
495 PH.DataDirectories[COFF::CLR_RUNTIME_HEADER]); in mapping()
498 void MappingTraits<COFF::header>::mapping(IO &IO, COFF::header &H) { in mapping()
508 void MappingTraits<COFF::AuxiliaryFunctionDefinition>::mapping( in mapping()
509 IO &IO, COFF::AuxiliaryFunctionDefinition &AFD) { in mapping()
516 void MappingTraits<COFF::AuxiliarybfAndefSymbol>::mapping( in mapping()
517 IO &IO, COFF::AuxiliarybfAndefSymbol &AAS) { in mapping()
522 void MappingTraits<COFF::AuxiliaryWeakExternal>::mapping( in mapping()
523 IO &IO, COFF::AuxiliaryWeakExternal &AWE) { in mapping()
530 void MappingTraits<COFF::AuxiliarySectionDefinition>::mapping( in mapping()
531 IO &IO, COFF::AuxiliarySectionDefinition &ASD) { in mapping()
543 void MappingTraits<COFF::AuxiliaryCLRToken>::mapping( in mapping()
544 IO &IO, COFF::AuxiliaryCLRToken &ACT) { in mapping()
639 COFF::header &H = *static_cast<COFF::header *>(IO.getContext()); in mapping()
640 if (COFF::is64Bit(H.Machine)) in mapping()