reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/ObjectYAML/COFFEmitter.cpp
  350   memset(Header, 0, sizeof(*Header));
  350   memset(Header, 0, sizeof(*Header));
  351   Header->Magic = Magic;
  352   Header->SectionAlignment = CP.Obj.OptionalHeader->Header.SectionAlignment;
  353   Header->FileAlignment = CP.Obj.OptionalHeader->Header.FileAlignment;
  357                                    Header->FileAlignment);
  358   uint32_t SizeOfImage = alignTo(SizeOfHeaders, Header->SectionAlignment);
  368       Header->BaseOfCode = S.Header.VirtualAddress; // RVA
  372       SizeOfImage += alignTo(S.Header.VirtualSize, Header->SectionAlignment);
  374   Header->SizeOfCode = SizeOfCode;
  375   Header->SizeOfInitializedData = SizeOfInitializedData;
  376   Header->SizeOfUninitializedData = SizeOfUninitializedData;
  377   Header->AddressOfEntryPoint =
  379   Header->ImageBase = CP.Obj.OptionalHeader->Header.ImageBase;
  380   Header->MajorOperatingSystemVersion =
  382   Header->MinorOperatingSystemVersion =
  384   Header->MajorImageVersion = CP.Obj.OptionalHeader->Header.MajorImageVersion;
  385   Header->MinorImageVersion = CP.Obj.OptionalHeader->Header.MinorImageVersion;
  386   Header->MajorSubsystemVersion =
  388   Header->MinorSubsystemVersion =
  390   Header->SizeOfImage = SizeOfImage;
  391   Header->SizeOfHeaders = SizeOfHeaders;
  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;
  398   Header->NumberOfRvaAndSize = COFF::NUM_DATA_DIRECTORIES + 1;