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()
541 CompressedSection::CompressedSection(const SectionBase &Sec, in CompressedSection()
544 : SectionBase(Sec), CompressionType(CompressionType), in CompressedSection()
698 SectionBase *DefinedIn, uint64_t Value, in addSymbol()
723 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences()
763 const DenseMap<SectionBase *, SectionBase *> &FromTo) { in replaceSectionReferences() argument
765 if (SectionBase *To = FromTo.lookup(Sym->DefinedIn)) in replaceSectionReferences()
881 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences()
924 Expected<SectionBase *> Sec = in initialize()
1002 const DenseMap<SectionBase *, SectionBase *> &FromTo) { in replaceSectionReferences() argument
1004 if (SectionBase *To = FromTo.lookup(SecToApplyRel)) in replaceSectionReferences()
1022 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences()
1043 function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences()
1067 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences()
1097 const DenseMap<SectionBase *, SectionBase *> &FromTo) { in replaceSectionReferences() argument
1098 for (SectionBase *&Sec : GroupMembers) in replaceSectionReferences()
1099 if (SectionBase *To = FromTo.lookup(Sec)) in replaceSectionReferences()
1106 for (SectionBase *Sec : GroupMembers) in onRemove()
1114 Expected<SectionBase *> Sec = in initialize()
1179 for (SectionBase *S : Sec.GroupMembers) in visit()
1193 static bool sectionWithinSegment(const SectionBase &Sec, const Segment &Seg) { in sectionWithinSegment()
1274 for (SectionBase &Sec : Obj->sections()) in initSections()
1406 for (const SectionBase &Sec : Obj.sections()) { in findEhdrOffset()
1447 for (SectionBase &Sec : Obj.sections()) in readProgramHeaders()
1523 Expected<SectionBase *> Sec = SecTable.getSection( in initGroupSection()
1553 SectionBase *DefSection = nullptr; in initSymbolTable()
1584 Expected<SectionBase *> Sec = Obj.sections().getSection( in initSymbolTable()
1601 Expected<SectionBase *> Sec = Obj.sections().getSection( in initSymbolTable()
1654 Expected<SectionBase *> SectionTableRef::getSection(uint32_t Index, in getSection()
1665 Expected<SectionBase *> BaseSec = getSection(Index, IndexErrMsg); in getSectionOfType()
1676 Expected<SectionBase &> ELFBuilder<ELFT>::makeSection(const Elf_Shdr &Shdr) { in makeSection()
1767 Expected<SectionBase &> Sec = makeSection(Shdr); in readSectionHeaders()
1844 for (SectionBase &Sec : Obj.sections()) { in readSections()
2070 for (SectionBase &Sec : Obj.sections()) in writeShdrs()
2075 for (SectionBase &Sec : Obj.sections()) in writeSectionData()
2094 SectionBase *Sec = it.first; in writeSegmentData()
2153 bool AllowBrokenLinks, std::function<bool(const SectionBase &)> ToRemove) { in removeSections()
2174 std::unordered_set<const SectionBase *> RemoveSections; in removeSections()
2190 AllowBrokenLinks, [&RemoveSections](const SectionBase *Sec) { in removeSections()
2205 const DenseMap<SectionBase *, SectionBase *> &FromTo) { in replaceSections() argument
2222 [=](const SectionBase &Sec) { return FromTo.count(&Sec) > 0; })) in replaceSections()
2241 for (SectionBase &Sec : sections()) { in addNewSymbolTable()
2316 std::vector<SectionBase *> OutOfSegmentSections; in layoutSections()
2329 [](const SectionBase *Lhs, const SectionBase *Rhs) { in layoutSections()
2346 std::vector<SectionBase *> Sections; in layoutSectionsForOnlyKeepDebug()
2354 [](const SectionBase *Lhs, const SectionBase *Rhs) { in layoutSectionsForOnlyKeepDebug()
2406 const SectionBase *FirstSec = Seg->firstSection(); in layoutSegmentsForOnlyKeepDebug()
2411 for (const SectionBase *Sec : Seg->Sections) { in layoutSegmentsForOnlyKeepDebug()
2517 return Obj.removeSections(false, [&](const SectionBase &Sec) { in removeUnneededSections()
2537 for (SectionBase &Sec : Obj.sections()) in finalize()
2550 [](const SectionBase &Sec) { return Sec.HasSymbol; }); in finalize()
2571 [this](const SectionBase &Sec) { in finalize()
2581 for (const SectionBase &Sec : Obj.sections()) in finalize()
2591 for (SectionBase &Sec : Obj.sections()) { in finalize()
2605 for (SectionBase &Sec : Obj.sections()) in finalize()
2619 for (SectionBase &Sec : Obj.sections()) { in finalize()
2639 SmallVector<const SectionBase *, 30> SectionsToWrite; in write()
2640 for (const SectionBase &Sec : Obj.allocSections()) { in write()
2649 [](const SectionBase *LHS, const SectionBase *RHS) { in write()
2656 const SectionBase &Sec = *SectionsToWrite[i]; in write()
2682 for (SectionBase &Sec : Obj.allocSections()) { in finalize()
2695 for (SectionBase &Sec : Obj.allocSections()) in finalize()
2710 bool IHexWriter::SectionCompare::operator()(const SectionBase *Lhs, in operator ()()
2711 const SectionBase *Rhs) const { in operator ()()
2746 for (const SectionBase *Sec : Sections) in write()
2765 Error IHexWriter::checkSection(const SectionBase &Sec) { in checkSection()
2782 for (const SectionBase &Sec : Obj.sections()) in finalize()
2797 for (const SectionBase *Sec : Sections) in finalize()