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

References

lib/MC/ELFObjectWriter.cpp
  173       W.write<uint64_t>(Word);
  175       W.write<uint32_t>(Word);
  179     W.write(Val);
  340   uint64_t Padding = offsetToAlignment(W.OS.tell(), Align(Alignment));
  341   W.OS.write_zeros(Padding);
  418   W.OS << ELF::ElfMagic; // e_ident[EI_MAG0] to e_ident[EI_MAG3]
  420   W.OS << char(is64Bit() ? ELF::ELFCLASS64 : ELF::ELFCLASS32); // e_ident[EI_CLASS]
  423   W.OS << char(W.Endian == support::little ? ELF::ELFDATA2LSB
  423   W.OS << char(W.Endian == support::little ? ELF::ELFDATA2LSB
  426   W.OS << char(ELF::EV_CURRENT);        // e_ident[EI_VERSION]
  428   W.OS << char(OWriter.TargetObjectWriter->getOSABI());
  430   W.OS << char(OWriter.TargetObjectWriter->getABIVersion());
  432   W.OS.write_zeros(ELF::EI_NIDENT - ELF::EI_PAD);
  434   W.write<uint16_t>(ELF::ET_REL);             // e_type
  436   W.write<uint16_t>(OWriter.TargetObjectWriter->getEMachine()); // e_machine = target
  438   W.write<uint32_t>(ELF::EV_CURRENT);         // e_version
  444   W.write<uint32_t>(Asm.getELFHeaderEFlags());
  447   W.write<uint16_t>(is64Bit() ? sizeof(ELF::Elf64_Ehdr)
  450   W.write<uint16_t>(0);                  // e_phentsize = prog header entry size
  451   W.write<uint16_t>(0);                  // e_phnum = # prog header entries = 0
  454   W.write<uint16_t>(is64Bit() ? sizeof(ELF::Elf64_Shdr)
  458   W.write<uint16_t>(0);
  462   W.write<uint16_t>(StringTableIndex);
  645   uint64_t SecStart = W.OS.tell();
  781   uint64_t SecEnd = W.OS.tell();
  791   SecStart = W.OS.tell();
  796   SecEnd = W.OS.tell();
  802     encodeULEB128(Sym->getIndex(), W.OS);
  861   W.OS << Magic;
  862   support::endian::write(W.OS, Size, support::big);
  881     Asm.writeSectionData(W.OS, &Section, Layout);
  898     W.OS << UncompressedData;
  905     W.OS << UncompressedData;
  919   W.OS << CompressedContents;
  926   W.write<uint32_t>(Name);        // sh_name: index into string table
  927   W.write<uint32_t>(Type);        // sh_type
  932   W.write<uint32_t>(Link);        // sh_link
  933   W.write<uint32_t>(Info);        // sh_info
 1005   StrTabBuilder.write(W.OS);
 1093   uint64_t StartOffset = W.OS.tell();
 1122     uint64_t SecStart = W.OS.tell();
 1127     uint64_t SecEnd = W.OS.tell();
 1169     uint64_t SecStart = W.OS.tell();
 1179     uint64_t SecEnd = W.OS.tell();
 1203       uint64_t SecStart = W.OS.tell();
 1208       uint64_t SecEnd = W.OS.tell();
 1213       uint64_t SecStart = W.OS.tell();
 1215       uint64_t SecEnd = W.OS.tell();
 1221     uint64_t SecStart = W.OS.tell();
 1223       W.write<uint32_t>(CGPE.From->getSymbol().getIndex());
 1224       W.write<uint32_t>(CGPE.To->getSymbol().getIndex());
 1225       W.write<uint64_t>(CGPE.Count);
 1227     uint64_t SecEnd = W.OS.tell();
 1232     uint64_t SecStart = W.OS.tell();
 1234     uint64_t SecEnd = W.OS.tell();
 1241   const uint64_t SectionHeaderOffset = W.OS.tell();
 1249       W.Endian);
 1252   auto &Stream = static_cast<raw_pwrite_stream &>(W.OS);
 1255         support::endian::byte_swap<uint64_t>(SectionHeaderOffset, W.Endian);
 1261         support::endian::byte_swap<uint32_t>(SectionHeaderOffset, W.Endian);
 1269   return W.OS.tell() - StartOffset;