Lines Matching refs:SectionBase
51 Error SectionBase::removeSectionReferences( in removeSectionReferences()
52 bool, function_ref<bool(const SectionBase *)>) { in removeSectionReferences() argument
56 Error SectionBase::removeSymbols(function_ref<bool(const Symbol &)>) { in removeSymbols()
60 Error SectionBase::initialize(SectionTableRef) { return Error::success(); } in initialize()
61 void SectionBase::finalize() {} in finalize()
62 void SectionBase::markSymbols() {} in markSymbols()
63 void SectionBase::replaceSectionReferences( in replaceSectionReferences()
64 const DenseMap<SectionBase *, SectionBase *> &) {} in replaceSectionReferences() argument
65 void SectionBase::onRemove() {} in onRemove()
67 template <class ELFT> void ELFWriter<ELFT>::writeShdr(const SectionBase &Sec) { in writeShdr()
327 static uint64_t sectionPhysicalAddr(const SectionBase *Sec) { in sectionPhysicalAddr()
335 void IHexSectionWriterBase::writeSection(const SectionBase *Sec, in writeSection()
511 CompressedSection::CompressedSection(const SectionBase &Sec, in CompressedSection()
513 : SectionBase(Sec), CompressionType(CompressionType), in CompressedSection()
667 SectionBase *DefinedIn, uint64_t Value, in addSymbol()
692 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences()
729 const DenseMap<SectionBase *, SectionBase *> &FromTo) { in replaceSectionReferences() argument
731 if (SectionBase *To = FromTo.lookup(Sym->DefinedIn)) in replaceSectionReferences()
847 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences()
890 Expected<SectionBase *> Sec = in initialize()
968 const DenseMap<SectionBase *, SectionBase *> &FromTo) { in replaceSectionReferences() argument
970 if (SectionBase *To = FromTo.lookup(SecToApplyRel)) in replaceSectionReferences()
988 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences()
1009 function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences()
1033 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences()
1063 const DenseMap<SectionBase *, SectionBase *> &FromTo) { in replaceSectionReferences() argument
1064 for (SectionBase *&Sec : GroupMembers) in replaceSectionReferences()
1065 if (SectionBase *To = FromTo.lookup(Sec)) in replaceSectionReferences()
1072 for (SectionBase *Sec : GroupMembers) in onRemove()
1080 Expected<SectionBase *> Sec = in initialize()
1143 for (SectionBase *S : Sec.GroupMembers) in visit()
1157 static bool sectionWithinSegment(const SectionBase &Sec, const Segment &Seg) { in sectionWithinSegment()
1238 for (SectionBase &Sec : Obj->sections()) in initSections()
1370 for (const SectionBase &Sec : Obj.sections()) { in findEhdrOffset()
1411 for (SectionBase &Sec : Obj.sections()) in readProgramHeaders()
1487 Expected<SectionBase *> Sec = SecTable.getSection( in initGroupSection()
1517 SectionBase *DefSection = nullptr; in initSymbolTable()
1548 Expected<SectionBase *> Sec = Obj.sections().getSection( in initSymbolTable()
1565 Expected<SectionBase *> Sec = Obj.sections().getSection( in initSymbolTable()
1618 Expected<SectionBase *> SectionTableRef::getSection(uint32_t Index, in getSection()
1629 Expected<SectionBase *> BaseSec = getSection(Index, IndexErrMsg); in getSectionOfType()
1640 Expected<SectionBase &> ELFBuilder<ELFT>::makeSection(const Elf_Shdr &Shdr) { in makeSection()
1727 Expected<SectionBase &> Sec = makeSection(Shdr); in readSectionHeaders()
1804 for (SectionBase &Sec : Obj.sections()) { in readSections()
2028 for (SectionBase &Sec : Obj.sections()) in writeShdrs()
2033 for (SectionBase &Sec : Obj.sections()) in writeSectionData()
2052 SectionBase *Sec = it.first; in writeSegmentData()
2111 bool AllowBrokenLinks, std::function<bool(const SectionBase &)> ToRemove) { in removeSections()
2132 std::unordered_set<const SectionBase *> RemoveSections; in removeSections()
2148 AllowBrokenLinks, [&RemoveSections](const SectionBase *Sec) { in removeSections()
2163 const DenseMap<SectionBase *, SectionBase *> &FromTo) { in replaceSections() argument
2180 [=](const SectionBase &Sec) { return FromTo.count(&Sec) > 0; })) in replaceSections()
2199 for (SectionBase &Sec : sections()) { in addNewSymbolTable()
2274 std::vector<SectionBase *> OutOfSegmentSections; in layoutSections()
2287 [](const SectionBase *Lhs, const SectionBase *Rhs) { in layoutSections()
2304 std::vector<SectionBase *> Sections; in layoutSectionsForOnlyKeepDebug()
2312 [](const SectionBase *Lhs, const SectionBase *Rhs) { in layoutSectionsForOnlyKeepDebug()
2364 const SectionBase *FirstSec = Seg->firstSection(); in layoutSegmentsForOnlyKeepDebug()
2369 for (const SectionBase *Sec : Seg->Sections) { in layoutSegmentsForOnlyKeepDebug()
2475 return Obj.removeSections(false, [&](const SectionBase &Sec) { in removeUnneededSections()
2502 [](const SectionBase &Sec) { return Sec.HasSymbol; }); in finalize()
2523 [this](const SectionBase &Sec) { in finalize()
2533 for (const SectionBase &Sec : Obj.sections()) in finalize()
2543 for (SectionBase &Sec : Obj.sections()) { in finalize()
2557 for (SectionBase &Sec : Obj.sections()) in finalize()
2571 for (SectionBase &Sec : Obj.sections()) { in finalize()
2591 for (const SectionBase &Sec : Obj.allocSections()) in write()
2607 for (SectionBase &Sec : Obj.allocSections()) { in finalize()
2623 for (SectionBase &Sec : Obj.allocSections()) in finalize()
2638 bool IHexWriter::SectionCompare::operator()(const SectionBase *Lhs, in operator ()()
2639 const SectionBase *Rhs) const { in operator ()()
2674 for (const SectionBase *Sec : Sections) in write()
2693 Error IHexWriter::checkSection(const SectionBase &Sec) { in checkSection()
2710 for (const SectionBase &Sec : Obj.sections()) in finalize()
2725 for (const SectionBase *Sec : Sections) in finalize()