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

References

lib/MC/WinCOFFObjectWriter.cpp
  484     W.write<uint16_t>(COFF::IMAGE_FILE_MACHINE_UNKNOWN);
  485     W.write<uint16_t>(0xFFFF);
  486     W.write<uint16_t>(COFF::BigObjHeader::MinBigObjectVersion);
  487     W.write<uint16_t>(Header.Machine);
  488     W.write<uint32_t>(Header.TimeDateStamp);
  489     W.OS.write(COFF::BigObjMagic, sizeof(COFF::BigObjMagic));
  490     W.write<uint32_t>(0);
  491     W.write<uint32_t>(0);
  492     W.write<uint32_t>(0);
  493     W.write<uint32_t>(0);
  494     W.write<uint32_t>(Header.NumberOfSections);
  495     W.write<uint32_t>(Header.PointerToSymbolTable);
  496     W.write<uint32_t>(Header.NumberOfSymbols);
  498     W.write<uint16_t>(Header.Machine);
  499     W.write<uint16_t>(static_cast<int16_t>(Header.NumberOfSections));
  500     W.write<uint32_t>(Header.TimeDateStamp);
  501     W.write<uint32_t>(Header.PointerToSymbolTable);
  502     W.write<uint32_t>(Header.NumberOfSymbols);
  503     W.write<uint16_t>(Header.SizeOfOptionalHeader);
  504     W.write<uint16_t>(Header.Characteristics);
  509   W.OS.write(S.Data.Name, COFF::NameSize);
  510   W.write<uint32_t>(S.Data.Value);
  512     W.write<uint32_t>(S.Data.SectionNumber);
  514     W.write<uint16_t>(static_cast<int16_t>(S.Data.SectionNumber));
  515   W.write<uint16_t>(S.Data.Type);
  516   W.OS << char(S.Data.StorageClass);
  517   W.OS << char(S.Data.NumberOfAuxSymbols);
  526       W.write<uint32_t>(i.Aux.WeakExternal.TagIndex);
  527       W.write<uint32_t>(i.Aux.WeakExternal.Characteristics);
  528       W.OS.write_zeros(sizeof(i.Aux.WeakExternal.unused));
  530         W.OS.write_zeros(COFF::Symbol32Size - COFF::Symbol16Size);
  533       W.OS.write(reinterpret_cast<const char *>(&i.Aux),
  537       W.write<uint32_t>(i.Aux.SectionDefinition.Length);
  538       W.write<uint16_t>(i.Aux.SectionDefinition.NumberOfRelocations);
  539       W.write<uint16_t>(i.Aux.SectionDefinition.NumberOfLinenumbers);
  540       W.write<uint32_t>(i.Aux.SectionDefinition.CheckSum);
  541       W.write<uint16_t>(static_cast<int16_t>(i.Aux.SectionDefinition.Number));
  542       W.OS << char(i.Aux.SectionDefinition.Selection);
  543       W.OS.write_zeros(sizeof(i.Aux.SectionDefinition.unused));
  544       W.write<uint16_t>(static_cast<int16_t>(i.Aux.SectionDefinition.Number >> 16));
  546         W.OS.write_zeros(COFF::Symbol32Size - COFF::Symbol16Size);
  571     W.OS.write(S.Name, COFF::NameSize);
  572     W.write<uint32_t>(S.VirtualSize);
  573     W.write<uint32_t>(S.VirtualAddress);
  574     W.write<uint32_t>(S.SizeOfRawData);
  575     W.write<uint32_t>(S.PointerToRawData);
  576     W.write<uint32_t>(S.PointerToRelocations);
  577     W.write<uint32_t>(S.PointerToLineNumbers);
  578     W.write<uint16_t>(S.NumberOfRelocations);
  579     W.write<uint16_t>(S.NumberOfLineNumbers);
  580     W.write<uint32_t>(S.Characteristics);
  585   W.write<uint32_t>(R.VirtualAddress);
  586   W.write<uint32_t>(R.SymbolTableIndex);
  587   W.write<uint16_t>(R.Type);
  603   W.OS << Buf;
  621     assert(W.OS.tell() == Sec.Header.PointerToRawData &&
  641   assert(W.OS.tell() == Sec.Header.PointerToRelocations &&
  894   unsigned Offset = W.OS.tell();
  954   uint64_t StartOffset = W.OS.tell();
 1076   assert(W.OS.tell() == Header.PointerToSymbolTable &&
 1085   Strings.write(W.OS);
 1087   return W.OS.tell() - StartOffset;