• Home
  • Raw
  • Download

Lines Matching refs:SectionBase

53 Error SectionBase::removeSectionReferences(  in removeSectionReferences()
54 bool, function_ref<bool(const SectionBase *)>) { in removeSectionReferences() argument
58 Error SectionBase::removeSymbols(function_ref<bool(const Symbol &)>) { in removeSymbols()
62 Error SectionBase::initialize(SectionTableRef) { return Error::success(); } in initialize()
63 void SectionBase::finalize() {} in finalize()
64 void SectionBase::markSymbols() {} in markSymbols()
65 void SectionBase::replaceSectionReferences( in replaceSectionReferences()
66 const DenseMap<SectionBase *, SectionBase *> &) {} in replaceSectionReferences() argument
67 void SectionBase::onRemove() {} in onRemove()
69 template <class ELFT> void ELFWriter<ELFT>::writeShdr(const SectionBase &Sec) { in writeShdr()
328 static uint64_t sectionPhysicalAddr(const SectionBase *Sec) { in sectionPhysicalAddr()
336 void IHexSectionWriterBase::writeSection(const SectionBase *Sec, in writeSection()
550 CompressedSection::create(const SectionBase &Sec, in create()
567 CompressedSection::CompressedSection(const SectionBase &Sec, in CompressedSection()
570 : SectionBase(Sec), CompressionType(CompressionType), in CompressedSection()
728 SectionBase *DefinedIn, uint64_t Value, in addSymbol()
753 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences()
790 const DenseMap<SectionBase *, SectionBase *> &FromTo) { in replaceSectionReferences() argument
792 if (SectionBase *To = FromTo.lookup(Sym->DefinedIn)) in replaceSectionReferences()
897 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences()
940 Expected<SectionBase *> Sec = in initialize()
1016 const DenseMap<SectionBase *, SectionBase *> &FromTo) { in replaceSectionReferences() argument
1018 if (SectionBase *To = FromTo.lookup(SecToApplyRel)) in replaceSectionReferences()
1036 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences()
1057 function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences()
1075 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences()
1105 const DenseMap<SectionBase *, SectionBase *> &FromTo) { in replaceSectionReferences() argument
1106 for (SectionBase *&Sec : GroupMembers) in replaceSectionReferences()
1107 if (SectionBase *To = FromTo.lookup(Sec)) in replaceSectionReferences()
1114 for (SectionBase *Sec : GroupMembers) in onRemove()
1122 Expected<SectionBase *> Sec = in initialize()
1184 for (SectionBase *S : Sec.GroupMembers) in visit()
1198 static bool sectionWithinSegment(const SectionBase &Sec, const Segment &Seg) { in sectionWithinSegment()
1275 for (SectionBase &Sec : Obj->sections()) in initSections()
1395 for (const SectionBase &Sec : Obj.sections()) { in findEhdrOffset()
1436 for (SectionBase &Sec : Obj.sections()) in readProgramHeaders()
1511 Expected<SectionBase *> Sec = SecTable.getSection( in initGroupSection()
1541 SectionBase *DefSection = nullptr; in initSymbolTable()
1572 Expected<SectionBase *> Sec = Obj.sections().getSection( in initSymbolTable()
1589 Expected<SectionBase *> Sec = Obj.sections().getSection( in initSymbolTable()
1642 Expected<SectionBase *> SectionTableRef::getSection(uint32_t Index, in getSection()
1653 Expected<SectionBase *> BaseSec = getSection(Index, IndexErrMsg); in getSectionOfType()
1664 Expected<SectionBase &> ELFBuilder<ELFT>::makeSection(const Elf_Shdr &Shdr) { in makeSection()
1759 Expected<SectionBase &> Sec = makeSection(Shdr); in readSectionHeaders()
1836 for (SectionBase &Sec : Obj.sections()) { in readSections()
2060 for (SectionBase &Sec : Obj.sections()) in writeShdrs()
2065 for (SectionBase &Sec : Obj.sections()) in writeSectionData()
2101 bool AllowBrokenLinks, std::function<bool(const SectionBase &)> ToRemove) { in removeSections()
2122 std::unordered_set<const SectionBase *> RemoveSections; in removeSections()
2138 AllowBrokenLinks, [&RemoveSections](const SectionBase *Sec) { in removeSections()
2165 for (SectionBase &Sec : sections()) { in addNewSymbolTable()
2321 const SectionBase *FirstSec = Seg->firstSection(); in layoutSegmentsForOnlyKeepDebug()
2327 for (const SectionBase *Sec : Seg->Sections) { in layoutSegmentsForOnlyKeepDebug()
2429 return Obj.removeSections(false, [&](const SectionBase &Sec) { in removeUnneededSections()
2455 [](const SectionBase &Sec) { return Sec.HasSymbol; }); in finalize()
2476 [this](const SectionBase &Sec) { in finalize()
2486 for (const SectionBase &Sec : Obj.sections()) in finalize()
2496 for (SectionBase &Sec : Obj.sections()) { in finalize()
2510 for (SectionBase &Sec : Obj.sections()) in finalize()
2524 for (SectionBase &Sec : Obj.sections()) { in finalize()
2539 for (const SectionBase &Sec : Obj.allocSections()) in write()
2552 for (SectionBase &Sec : Obj.allocSections()) { in finalize()
2565 for (SectionBase &Sec : Obj.allocSections()) in finalize()
2577 bool IHexWriter::SectionCompare::operator()(const SectionBase *Lhs, in operator ()()
2578 const SectionBase *Rhs) const { in operator ()()
2613 for (const SectionBase *Sec : Sections) in write()
2626 Error IHexWriter::checkSection(const SectionBase &Sec) { in checkSection()
2638 auto ShouldWrite = [](const SectionBase &Sec) { in finalize()
2641 auto IsInPtLoad = [](const SectionBase &Sec) { in finalize()
2654 for (const SectionBase &Sec : Obj.sections()) in finalize()
2660 for (const SectionBase &Sec : Obj.sections()) in finalize()
2668 for (const SectionBase *Sec : Sections) in finalize()