reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
45 return static_cast<int32_t>(Obj.Sections.size()) > 49 bool isPE() const { return Obj.OptionalHeader.hasValue(); } 51 return Obj.Header.Machine == COFF::IMAGE_FILE_MACHINE_AMD64 || 52 Obj.Header.Machine == COFF::IMAGE_FILE_MACHINE_ARM64; 56 return Obj.OptionalHeader->Header.FileAlignment; 68 for (std::vector<COFFYAML::Section>::iterator i = Obj.Sections.begin(), 69 e = Obj.Sections.end(); 107 for (std::vector<COFFYAML::Symbol>::iterator i = Obj.Symbols.begin(), 108 e = Obj.Symbols.end(); 173 CP.Obj.Header.SizeOfOptionalHeader = 211 CP.getHeaderSize() + CP.Obj.Header.SizeOfOptionalHeader; 214 CP.SectionTableSize = COFF::SectionSize * CP.Obj.Sections.size(); 219 for (COFFYAML::Section &S : CP.Obj.Sections) { 232 for (COFFYAML::Section &S : CP.Obj.Sections) { 278 for (std::vector<COFFYAML::Symbol>::iterator i = CP.Obj.Symbols.begin(), 279 e = CP.Obj.Symbols.end(); 300 CP.Obj.Header.NumberOfSections = CP.Obj.Sections.size(); 300 CP.Obj.Header.NumberOfSections = CP.Obj.Sections.size(); 301 CP.Obj.Header.NumberOfSymbols = NumberOfSymbols; 303 CP.Obj.Header.PointerToSymbolTable = SymbolTableStart; 305 CP.Obj.Header.PointerToSymbolTable = 0; 352 Header->SectionAlignment = CP.Obj.OptionalHeader->Header.SectionAlignment; 353 Header->FileAlignment = CP.Obj.OptionalHeader->Header.FileAlignment; 360 for (const COFFYAML::Section &S : CP.Obj.Sections) { 378 CP.Obj.OptionalHeader->Header.AddressOfEntryPoint; // RVA 379 Header->ImageBase = CP.Obj.OptionalHeader->Header.ImageBase; 381 CP.Obj.OptionalHeader->Header.MajorOperatingSystemVersion; 383 CP.Obj.OptionalHeader->Header.MinorOperatingSystemVersion; 384 Header->MajorImageVersion = CP.Obj.OptionalHeader->Header.MajorImageVersion; 385 Header->MinorImageVersion = CP.Obj.OptionalHeader->Header.MinorImageVersion; 387 CP.Obj.OptionalHeader->Header.MajorSubsystemVersion; 389 CP.Obj.OptionalHeader->Header.MinorSubsystemVersion; 392 Header->Subsystem = CP.Obj.OptionalHeader->Header.Subsystem; 393 Header->DLLCharacteristics = CP.Obj.OptionalHeader->Header.DLLCharacteristics; 394 Header->SizeOfStackReserve = CP.Obj.OptionalHeader->Header.SizeOfStackReserve; 395 Header->SizeOfStackCommit = CP.Obj.OptionalHeader->Header.SizeOfStackCommit; 396 Header->SizeOfHeapReserve = CP.Obj.OptionalHeader->Header.SizeOfHeapReserve; 397 Header->SizeOfHeapCommit = CP.Obj.OptionalHeader->Header.SizeOfHeapCommit; 431 << binary_le(CP.Obj.Header.Machine) 432 << binary_le(CP.Obj.Header.TimeDateStamp); 435 << zeros(uint32_t(0)) << binary_le(CP.Obj.Header.NumberOfSections) 436 << binary_le(CP.Obj.Header.PointerToSymbolTable) 437 << binary_le(CP.Obj.Header.NumberOfSymbols); 439 OS << binary_le(CP.Obj.Header.Machine) 440 << binary_le(static_cast<int16_t>(CP.Obj.Header.NumberOfSections)) 441 << binary_le(CP.Obj.Header.TimeDateStamp) 442 << binary_le(CP.Obj.Header.PointerToSymbolTable) 443 << binary_le(CP.Obj.Header.NumberOfSymbols) 444 << binary_le(CP.Obj.Header.SizeOfOptionalHeader) 445 << binary_le(CP.Obj.Header.Characteristics); 460 CP.Obj.OptionalHeader->DataDirectories) { 475 for (std::vector<COFFYAML::Section>::iterator i = CP.Obj.Sections.begin(), 476 e = CP.Obj.Sections.end(); 493 for (std::vector<COFFYAML::Symbol>::iterator I = CP.Obj.Symbols.begin(), 494 E = CP.Obj.Symbols.end(); 501 for (const COFFYAML::Section &S : CP.Obj.Sections) { 526 for (std::vector<COFFYAML::Symbol>::const_iterator i = CP.Obj.Symbols.begin(), 527 e = CP.Obj.Symbols.end(); 589 if (CP.Obj.Header.PointerToSymbolTable)