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

References

tools/lld/ELF/AArch64ErrataFix.cpp
  450       if (auto *sec = dyn_cast_or_null<InputSection>(def->section))
tools/lld/ELF/ARMErrataFix.cpp
  327       if (auto *sec = dyn_cast_or_null<InputSection>(def->section))
tools/lld/ELF/Arch/Mips.cpp
  728   if (!sym->section)
  732       cast<InputSectionBase>(sym->section)->template getFile<ELFT>();
tools/lld/ELF/Arch/PPC64.cpp
  165   if (!defSym || !defSym->isSection() || defSym->section->name != ".toc")
  170   auto *tocISB = cast<InputSectionBase>(defSym->section);
tools/lld/ELF/CallGraphSort.cpp
  252               if (sections[i] == d->section)
tools/lld/ELF/DWARF.cpp
  107     if (dr->section->flags & ELF::SHF_ALLOC)
  108       val += cast<InputSection>(dr->section)->getOffsetInFile();
tools/lld/ELF/Driver.cpp
  726       return dyn_cast_or_null<InputSectionBase>(dr->section);
  756       auto *from = dyn_cast_or_null<InputSectionBase>(fromSym->section);
  757       auto *to = dyn_cast_or_null<InputSectionBase>(toSym->section);
 1450     if (d->section)
 1453       if (config->icf == ICFLevel::Safe || !(d->section->flags & SHF_EXECINSTR))
 1454         d->section->keepUnique = true;
 1465     if (!d || !d->section) {
 1469     d->section->keepUnique = true;
tools/lld/ELF/ICF.cpp
  264     if (!da->section && !db->section && da->value + addA == db->value + addB)
  264     if (!da->section && !db->section && da->value + addA == db->value + addB)
  266     if (!da->section || !db->section)
  266     if (!da->section || !db->section)
  269     if (da->section->kind() != db->section->kind())
  269     if (da->section->kind() != db->section->kind())
  274     if (isa<InputSection>(da->section)) {
  282     auto *x = dyn_cast<MergeInputSection>(da->section);
  285     auto *y = cast<MergeInputSection>(db->section);
  340     if (!da->section)
  342     auto *x = dyn_cast<InputSection>(da->section);
  345     auto *y = cast<InputSection>(db->section);
  434       if (auto *relSec = dyn_cast_or_null<InputSection>(d->section))
tools/lld/ELF/InputSection.cpp
  287       if (d->section == this && d->type == STT_FUNC && d->value <= offset &&
  350       if (d->section == this && d->value <= off && off < d->value + d->size)
  457       SectionBase *section = d->section->repl;
  572   if (!d->section) {
  577   InputSection *isec = cast<InputSection>(d->section);
 1071       if (InputSection *isec = cast_or_null<InputSection>(d->section))
tools/lld/ELF/LTO.cpp
  199         !(dr->section == nullptr && (!sym->file || sym->file->isElf()));
tools/lld/ELF/LinkerScript.cpp
  223                         std::make_pair(cmd->sym->section, cmd->sym->value));
  230                           std::make_pair(cmd->sym->section, cmd->sym->value));
  242     if (std::make_pair(sym->section, sym->value) != it.second &&
  315     cmd->sym->section = nullptr;
  318     cmd->sym->section = v.sec;
 1172       return {ds->section, false, ds->value, loc};
tools/lld/ELF/MapFile.cpp
   59         if (!dr->isSection() && dr->section && dr->section->isLive() &&
   59         if (!dr->isSection() && dr->section && dr->section->isLive() &&
   60             (dr->file == file || dr->needsPltAddr || dr->section->bss))
   69     ret[dr->section].push_back(dr);
  241         if (!d->isLocal() && (!d->section || d->section->isLive()))
  241         if (!d->isLocal() && (!d->section || d->section->isLive()))
tools/lld/ELF/MarkLive.cpp
   99     auto *relSec = dyn_cast_or_null<InputSectionBase>(d->section);
  208     if (auto *isec = dyn_cast_or_null<InputSectionBase>(d->section))
  302         if ((d->type == STT_GNU_IFUNC || d->type == STT_TLS) && d->section &&
  303             d->section->isLive())
tools/lld/ELF/Relocations.cpp
  329     return dr->section == nullptr; // Absolute symbol.
 1362       d.section = in.iplt;
 1711     if (!d->isInPlt() && d->section)
 1712       thunkVec = &thunkedSymbolsBySection[{d->section->repl, d->value}];
 1718     if (isThunkSectionCompatible(isec, t->getThunkTargetSym()->section) &&
tools/lld/ELF/Symbols.cpp
   60     SectionBase *isec = d.section;
  196     if (auto *sec = s->section)
  337   else if (d && !d->section)
  339   else if (d && isa<OutputSection>(d->section))
  341   else if (d && !d->section->repl->isLive())
  558   if (!oldSym->section && !newSym->section && oldSym->value == newSym->value &&
  558   if (!oldSym->section && !newSym->section && oldSym->value == newSym->value &&
  571   if (!d->section || !errSec) {
  584   auto *sec1 = cast<InputSectionBase>(d->section);
  625                     dyn_cast_or_null<InputSectionBase>(other.section),
tools/lld/ELF/SyntheticSections.cpp
  392     if (SectionBase *sec = d->section)
 2095       return dyn_cast_or_null<BssSection>(d->section);
tools/lld/ELF/Thunks.cpp
  660   return dyn_cast<InputSection>(dr.section);
  684   return dyn_cast<InputSection>(dr.section);
  708   return dyn_cast<InputSection>(dr.section);
tools/lld/ELF/Writer.cpp
  648   SectionBase *sec = sym.section;
  658     SectionBase *sec = d->section;
 1045     ElfSym::globalOffsetTable->section = gotSection;
 1050     ElfSym::relaIpltStart->section = in.relaIplt;
 1051     ElfSym::relaIpltEnd->section = in.relaIplt;
 1071       ElfSym::etext1->section = lastRO->lastSec;
 1073       ElfSym::etext2->section = lastRO->lastSec;
 1087       ElfSym::edata1->section = edata;
 1089       ElfSym::edata2->section = edata;
 1093       ElfSym::end1->section = last->lastSec;
 1095       ElfSym::end2->section = last->lastSec;
 1099     ElfSym::bss->section = findSection(".bss");
 1108         ElfSym::mipsGp->section = os;
 1232       if (auto *sec = dyn_cast_or_null<InputSectionBase>(d->section)) {