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

References

tools/llvm-objcopy/COFF/COFFObjcopy.cpp
   39   return alignTo(Last.Header.VirtualAddress + Last.Header.VirtualSize,
   39   return alignTo(Last.Header.VirtualAddress + Last.Header.VirtualSize,
   68   Sec.Header.VirtualSize = NeedVA ? Sec.getContents().size() : 0u;
   69   Sec.Header.VirtualAddress = NeedVA ? getNextRVA(Obj) : 0u;
   70   Sec.Header.SizeOfRawData =
   71       NeedVA ? alignTo(Sec.Header.VirtualSize,
   75   Sec.Header.PointerToRelocations = 0;
   76   Sec.Header.PointerToLinenumbers = 0;
   78   Sec.Header.NumberOfLinenumbers = 0;
   79   Sec.Header.Characteristics = Characteristics;
  103           (Sec.Header.Characteristics & IMAGE_SCN_MEM_DISCARDABLE) != 0)
  118              ((Sec.Header.Characteristics &
tools/llvm-objcopy/COFF/Object.cpp
  130       Sec.Header.SizeOfRawData = 0;
tools/llvm-objcopy/COFF/Reader.cpp
   65     S.Header = *Sec;
tools/llvm-objcopy/COFF/Writer.cpp
   96     if (S.Header.SizeOfRawData > 0)
   97       S.Header.PointerToRawData = FileSize;
   98     FileSize += S.Header.SizeOfRawData; // For executables, this is already
  100     S.Header.NumberOfRelocations = S.Relocs.size();
  101     S.Header.PointerToRelocations =
  102         S.Header.NumberOfRelocations > 0 ? FileSize : 0;
  106     if (S.Header.Characteristics & IMAGE_SCN_CNT_INITIALIZED_DATA)
  107       SizeOfInitializedData += S.Header.SizeOfRawData;
  123     memset(S.Header.Name, 0, sizeof(S.Header.Name));
  123     memset(S.Header.Name, 0, sizeof(S.Header.Name));
  125       snprintf(S.Header.Name, sizeof(S.Header.Name), "/%d",
  125       snprintf(S.Header.Name, sizeof(S.Header.Name), "/%d",
  128       memcpy(S.Header.Name, S.Name.data(), S.Name.size());
  205           alignTo(S.Header.VirtualAddress + S.Header.VirtualSize,
  205           alignTo(S.Header.VirtualAddress + S.Header.VirtualSize,
  291     memcpy(Ptr, &S.Header, sizeof(S.Header));
  291     memcpy(Ptr, &S.Header, sizeof(S.Header));
  292     Ptr += sizeof(S.Header);
  298     uint8_t *Ptr = Buf.getBufferStart() + S.Header.PointerToRawData;
  304     if ((S.Header.Characteristics & IMAGE_SCN_CNT_CODE) &&
  305         S.Header.SizeOfRawData > Contents.size())
  307              S.Header.SizeOfRawData - Contents.size());
  309     Ptr += S.Header.SizeOfRawData;
  380     if (Dir->RelativeVirtualAddress >= S.Header.VirtualAddress &&
  382             S.Header.VirtualAddress + S.Header.SizeOfRawData) {
  382             S.Header.VirtualAddress + S.Header.SizeOfRawData) {
  384           S.Header.VirtualAddress + S.Header.SizeOfRawData)
  384           S.Header.VirtualAddress + S.Header.SizeOfRawData)
  388       size_t Offset = Dir->RelativeVirtualAddress - S.Header.VirtualAddress;
  389       uint8_t *Ptr = Buf.getBufferStart() + S.Header.PointerToRawData + Offset;
  394             S.Header.PointerToRawData + Offset + sizeof(debug_directory);