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()
549 CompressedSection::create(const SectionBase &Sec, in create()
566 CompressedSection::CompressedSection(const SectionBase &Sec, in CompressedSection()
569 : 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()
1081 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences()
1111 const DenseMap<SectionBase *, SectionBase *> &FromTo) { in replaceSectionReferences() argument
1112 for (SectionBase *&Sec : GroupMembers) in replaceSectionReferences()
1113 if (SectionBase *To = FromTo.lookup(Sec)) in replaceSectionReferences()
1120 for (SectionBase *Sec : GroupMembers) in onRemove()
1128 Expected<SectionBase *> Sec = in initialize()
1191 for (SectionBase *S : Sec.GroupMembers) in visit()
1205 static bool sectionWithinSegment(const SectionBase &Sec, const Segment &Seg) { in sectionWithinSegment()
1286 for (SectionBase &Sec : Obj->sections()) in initSections()
1407 for (const SectionBase &Sec : Obj.sections()) { in findEhdrOffset()
1448 for (SectionBase &Sec : Obj.sections()) in readProgramHeaders()
1524 Expected<SectionBase *> Sec = SecTable.getSection( in initGroupSection()
1554 SectionBase *DefSection = nullptr; in initSymbolTable()
1585 Expected<SectionBase *> Sec = Obj.sections().getSection( in initSymbolTable()
1602 Expected<SectionBase *> Sec = Obj.sections().getSection( in initSymbolTable()
1655 Expected<SectionBase *> SectionTableRef::getSection(uint32_t Index, in getSection()
1666 Expected<SectionBase *> BaseSec = getSection(Index, IndexErrMsg); in getSectionOfType()
1677 Expected<SectionBase &> ELFBuilder<ELFT>::makeSection(const Elf_Shdr &Shdr) { in makeSection()
1772 Expected<SectionBase &> Sec = makeSection(Shdr); in readSectionHeaders()
1849 for (SectionBase &Sec : Obj.sections()) { in readSections()
2073 for (SectionBase &Sec : Obj.sections()) in writeShdrs()
2078 for (SectionBase &Sec : Obj.sections()) in writeSectionData()
2114 bool AllowBrokenLinks, std::function<bool(const SectionBase &)> ToRemove) { in removeSections()
2135 std::unordered_set<const SectionBase *> RemoveSections; in removeSections()
2151 AllowBrokenLinks, [&RemoveSections](const SectionBase *Sec) { in removeSections()
2178 for (SectionBase &Sec : sections()) { in addNewSymbolTable()
2336 const SectionBase *FirstSec = Seg->firstSection(); in layoutSegmentsForOnlyKeepDebug()
2341 for (const SectionBase *Sec : Seg->Sections) { in layoutSegmentsForOnlyKeepDebug()
2447 return Obj.removeSections(false, [&](const SectionBase &Sec) { in removeUnneededSections()
2475 [](const SectionBase &Sec) { return Sec.HasSymbol; }); in finalize()
2496 [this](const SectionBase &Sec) { in finalize()
2506 for (const SectionBase &Sec : Obj.sections()) in finalize()
2516 for (SectionBase &Sec : Obj.sections()) { in finalize()
2530 for (SectionBase &Sec : Obj.sections()) in finalize()
2544 for (SectionBase &Sec : Obj.sections()) { in finalize()
2564 for (const SectionBase &Sec : Obj.allocSections()) in write()
2580 for (SectionBase &Sec : Obj.allocSections()) { in finalize()
2593 for (SectionBase &Sec : Obj.allocSections()) in finalize()
2608 bool IHexWriter::SectionCompare::operator()(const SectionBase *Lhs, in operator ()()
2609 const SectionBase *Rhs) const { in operator ()()
2644 for (const SectionBase *Sec : Sections) in write()
2663 Error IHexWriter::checkSection(const SectionBase &Sec) { in checkSection()
2680 for (const SectionBase &Sec : Obj.sections()) in finalize()
2695 for (const SectionBase *Sec : Sections) in finalize()