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

Declarations

tools/lld/ELF/SyntheticSections.h
 1141 extern Partition *mainPart;

References

tools/lld/ELF/Arch/PPC.cpp
  163   write32(buf, mainPart->dynamic->getVA());
tools/lld/ELF/Arch/RISCV.cpp
  132     write64le(buf, mainPart->dynamic->getVA());
  134     write32le(buf, mainPart->dynamic->getVA());
tools/lld/ELF/Arch/X86.cpp
  172   write32le(buf, mainPart->dynamic->getVA());
tools/lld/ELF/Arch/X86_64.cpp
  137   write64le(buf, mainPart->dynamic->getVA());
tools/lld/ELF/Driver.cpp
 1876   mainPart = &partitions[0];
tools/lld/ELF/LinkerScript.cpp
  445   if (s == in.shStrTab || s == mainPart->relaDyn || s == mainPart->relrDyn)
  445   if (s == in.shStrTab || s == mainPart->relaDyn || s == mainPart->relrDyn)
  451   if (s == mainPart->gnuHashTab)
  452     mainPart->gnuHashTab = nullptr;
  453   if (s == mainPart->hashTab)
  454     mainPart->hashTab = nullptr;
tools/lld/ELF/Relocations.cpp
  171       mainPart->relaDyn->addReloc(
  210         mainPart->relaDyn->addReloc(target->tlsModuleIndexRel, in.got,
  249           mainPart->relaDyn->addReloc(target->tlsModuleIndexRel, in.got, off, &sym);
  255           mainPart->relaDyn->addReloc(target->tlsOffsetRel, in.got, offsetOff,
  273         mainPart->relaDyn->addReloc(target->tlsGotRel, in.got, sym.getGotOffset(),
  586   mainPart->relaDyn->addReloc(target->copyRel, sec, 0, &ss);
  988   mainPart->relaDyn->addReloc(
 1264     mainPart->relaDyn->addReloc(type, &sec, offset, &sym, addend, R_ADDEND, type);
tools/lld/ELF/SyntheticSections.cpp
  945         mainPart->relaDyn->addReloc(target->tlsGotRel, this, offset, s);
  953         mainPart->relaDyn->addReloc(target->tlsModuleIndexRel, this, offset, s);
  961         mainPart->relaDyn->addReloc(target->tlsModuleIndexRel, this, offset, s);
  967         mainPart->relaDyn->addReloc(target->tlsOffsetRel, this, offset, s);
  979       mainPart->relaDyn->addReloc(target->relativeRel, this, offset, p.first);
  989         mainPart->relaDyn->addReloc({target->relativeRel, this, offset, l.first,
  995       mainPart->relaDyn->addReloc({target->relativeRel, this, offset, true,
 2016   if (this == mainPart->dynSymTab) {
 2063   if (this == mainPart->dynSymTab)
 3571     partitions[i].nameStrTab = mainPart->dynStrTab->addString(partitions[i].name);
 3577     write32(buf, mainPart->dynStrTab->getVA() + partitions[i].nameStrTab - va);
tools/lld/ELF/Thunks.cpp
  303     mainPart->relaDyn->addReloc(
tools/lld/ELF/Writer.cpp
  567     script->allocateHeaders(mainPart->phdrs);
 1691   if (mainPart->dynamic->parent)
 1694                               /*value=*/0, /*size=*/0, mainPart->dynamic});
 1860     Out::programHeaders->size = sizeof(Elf_Phdr) * mainPart->phdrs.size();
 1866     for (PhdrEntry *p : mainPart->phdrs)
 2549   writeEhdr<ELFT>(Out::bufferStart, *mainPart);
 2550   writePhdrs<ELFT>(Out::bufferStart + sizeof(Elf_Ehdr), *mainPart);
 2698   if (!mainPart->buildId || !mainPart->buildId->getParent())
 2698   if (!mainPart->buildId || !mainPart->buildId->getParent())
 2708   size_t hashSize = mainPart->buildId->hashSize;