Lines Matching refs:Obj

33   COFFParser(COFFYAML::Object &Obj)  in COFFParser()
34 : Obj(Obj), SectionTableStart(0), SectionTableSize(0) { in COFFParser()
41 return static_cast<int32_t>(Obj.Sections.size()) > in useBigObj()
45 bool isPE() const { return Obj.OptionalHeader.hasValue(); } in isPE()
47 return Obj.Header.Machine == COFF::IMAGE_FILE_MACHINE_AMD64; in is64Bit()
51 return Obj.OptionalHeader->Header.FileAlignment; in getFileAlignment()
63 for (std::vector<COFFYAML::Section>::iterator i = Obj.Sections.begin(), in parseSections()
64 e = Obj.Sections.end(); i != e; ++i) { in parseSections()
101 for (std::vector<COFFYAML::Symbol>::iterator i = Obj.Symbols.begin(), in parseSymbols()
102 e = Obj.Symbols.end(); i != e; ++i) { in parseSymbols()
143 COFFYAML::Object &Obj; member
158 CP.Obj.Header.SizeOfOptionalHeader = in layoutOptionalHeader()
174 CP.getHeaderSize() + CP.Obj.Header.SizeOfOptionalHeader; in layoutCOFF()
177 CP.SectionTableSize = COFF::SectionSize * CP.Obj.Sections.size(); in layoutCOFF()
183 for (COFFYAML::Section &S : CP.Obj.Sections) { in layoutCOFF()
209 for (std::vector<COFFYAML::Symbol>::iterator i = CP.Obj.Symbols.begin(), in layoutCOFF()
210 e = CP.Obj.Symbols.end(); in layoutCOFF()
231 CP.Obj.Header.NumberOfSections = CP.Obj.Sections.size(); in layoutCOFF()
232 CP.Obj.Header.NumberOfSymbols = NumberOfSymbols; in layoutCOFF()
234 CP.Obj.Header.PointerToSymbolTable = SymbolTableStart; in layoutCOFF()
236 CP.Obj.Header.PointerToSymbolTable = 0; in layoutCOFF()
300 Header->SectionAlignment = CP.Obj.OptionalHeader->Header.SectionAlignment; in initializeOptionalHeader()
301 Header->FileAlignment = CP.Obj.OptionalHeader->Header.FileAlignment; in initializeOptionalHeader()
308 for (const COFFYAML::Section &S : CP.Obj.Sections) { in initializeOptionalHeader()
326 CP.Obj.OptionalHeader->Header.AddressOfEntryPoint; // RVA in initializeOptionalHeader()
327 Header->ImageBase = CP.Obj.OptionalHeader->Header.ImageBase; in initializeOptionalHeader()
329 CP.Obj.OptionalHeader->Header.MajorOperatingSystemVersion; in initializeOptionalHeader()
331 CP.Obj.OptionalHeader->Header.MinorOperatingSystemVersion; in initializeOptionalHeader()
333 CP.Obj.OptionalHeader->Header.MajorImageVersion; in initializeOptionalHeader()
335 CP.Obj.OptionalHeader->Header.MinorImageVersion; in initializeOptionalHeader()
337 CP.Obj.OptionalHeader->Header.MajorSubsystemVersion; in initializeOptionalHeader()
339 CP.Obj.OptionalHeader->Header.MinorSubsystemVersion; in initializeOptionalHeader()
342 Header->Subsystem = CP.Obj.OptionalHeader->Header.Subsystem; in initializeOptionalHeader()
343 Header->DLLCharacteristics = CP.Obj.OptionalHeader->Header.DLLCharacteristics; in initializeOptionalHeader()
344 Header->SizeOfStackReserve = CP.Obj.OptionalHeader->Header.SizeOfStackReserve; in initializeOptionalHeader()
345 Header->SizeOfStackCommit = CP.Obj.OptionalHeader->Header.SizeOfStackCommit; in initializeOptionalHeader()
346 Header->SizeOfHeapReserve = CP.Obj.OptionalHeader->Header.SizeOfHeapReserve; in initializeOptionalHeader()
347 Header->SizeOfHeapCommit = CP.Obj.OptionalHeader->Header.SizeOfHeapCommit; in initializeOptionalHeader()
380 << binary_le(CP.Obj.Header.Machine) in writeCOFF()
381 << binary_le(CP.Obj.Header.TimeDateStamp); in writeCOFF()
387 << binary_le(CP.Obj.Header.NumberOfSections) in writeCOFF()
388 << binary_le(CP.Obj.Header.PointerToSymbolTable) in writeCOFF()
389 << binary_le(CP.Obj.Header.NumberOfSymbols); in writeCOFF()
391 OS << binary_le(CP.Obj.Header.Machine) in writeCOFF()
392 << binary_le(static_cast<int16_t>(CP.Obj.Header.NumberOfSections)) in writeCOFF()
393 << binary_le(CP.Obj.Header.TimeDateStamp) in writeCOFF()
394 << binary_le(CP.Obj.Header.PointerToSymbolTable) in writeCOFF()
395 << binary_le(CP.Obj.Header.NumberOfSymbols) in writeCOFF()
396 << binary_le(CP.Obj.Header.SizeOfOptionalHeader) in writeCOFF()
397 << binary_le(CP.Obj.Header.Characteristics); in writeCOFF()
411 CP.Obj.OptionalHeader->DataDirectories) { in writeCOFF()
426 for (std::vector<COFFYAML::Section>::iterator i = CP.Obj.Sections.begin(), in writeCOFF()
427 e = CP.Obj.Sections.end(); in writeCOFF()
444 for (std::vector<COFFYAML::Symbol>::iterator I = CP.Obj.Symbols.begin(), in writeCOFF()
445 E = CP.Obj.Symbols.end(); in writeCOFF()
452 for (const COFFYAML::Section &S : CP.Obj.Sections) { in writeCOFF()
470 for (std::vector<COFFYAML::Symbol>::const_iterator i = CP.Obj.Symbols.begin(), in writeCOFF()
471 e = CP.Obj.Symbols.end(); in writeCOFF()
530 if (CP.Obj.Header.PointerToSymbolTable) in writeCOFF()