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()
346 static uint64_t sectionPhysicalAddr(const SectionBase *Sec) { in sectionPhysicalAddr()
354 void IHexSectionWriterBase::writeSection(const SectionBase *Sec, in writeSection()
560 CompressedSection::CompressedSection(const SectionBase &Sec, in CompressedSection()
563 : SectionBase(Sec), CompressionType(CompressionType), in CompressedSection()
718 SectionBase *DefinedIn, uint64_t Value, in addSymbol()
743 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences()
783 const DenseMap<SectionBase *, SectionBase *> &FromTo) { in replaceSectionReferences() argument
785 if (SectionBase *To = FromTo.lookup(Sym->DefinedIn)) in replaceSectionReferences()
903 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences()
946 Expected<SectionBase *> Sec = in initialize()
1028 const DenseMap<SectionBase *, SectionBase *> &FromTo) { in replaceSectionReferences() argument
1030 if (SectionBase *To = FromTo.lookup(SecToApplyRel)) in replaceSectionReferences()
1048 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences()
1069 function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences()
1093 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) { in removeSectionReferences()
1123 const DenseMap<SectionBase *, SectionBase *> &FromTo) { in replaceSectionReferences() argument
1124 for (SectionBase *&Sec : GroupMembers) in replaceSectionReferences()
1125 if (SectionBase *To = FromTo.lookup(Sec)) in replaceSectionReferences()
1132 for (SectionBase *Sec : GroupMembers) in onRemove()
1140 Expected<SectionBase *> Sec = in initialize()
1205 for (SectionBase *S : Sec.GroupMembers) in visit()
1219 static bool sectionWithinSegment(const SectionBase &Sec, const Segment &Seg) { in sectionWithinSegment()
1306 for (SectionBase &Sec : Obj->sections()) in initSections()
1438 for (const SectionBase &Sec : Obj.sections()) { in findEhdrOffset()
1479 for (SectionBase &Sec : Obj.sections()) in readProgramHeaders()
1554 Expected<SectionBase *> Sec = SecTable.getSection( in initGroupSection()
1584 SectionBase *DefSection = nullptr; in initSymbolTable()
1615 Expected<SectionBase *> Sec = Obj.sections().getSection( in initSymbolTable()
1632 Expected<SectionBase *> Sec = Obj.sections().getSection( in initSymbolTable()
1685 Expected<SectionBase *> SectionTableRef::getSection(uint32_t Index, in getSection()
1696 Expected<SectionBase *> BaseSec = getSection(Index, IndexErrMsg); in getSectionOfType()
1707 Expected<SectionBase &> ELFBuilder<ELFT>::makeSection(const Elf_Shdr &Shdr) { in makeSection()
1799 Expected<SectionBase &> Sec = makeSection(Shdr); in readSectionHeaders()
1876 for (SectionBase &Sec : Obj.sections()) { in readSections()
2109 for (SectionBase &Sec : Obj.sections()) in writeShdrs()
2114 for (SectionBase &Sec : Obj.sections()) in writeSectionData()
2133 SectionBase *Sec = it.first; in writeSegmentData()
2192 bool AllowBrokenLinks, std::function<bool(const SectionBase &)> ToRemove) { in removeSections()
2222 std::unordered_set<const SectionBase *> RemoveSections; in removeSections()
2238 AllowBrokenLinks, [&RemoveSections](const SectionBase *Sec) { in removeSections()
2253 const DenseMap<SectionBase *, SectionBase *> &FromTo) { in replaceSections() argument
2270 [=](const SectionBase &Sec) { return FromTo.count(&Sec) > 0; })) in replaceSections()
2289 for (SectionBase &Sec : sections()) { in addNewSymbolTable()
2364 std::vector<SectionBase *> OutOfSegmentSections; in layoutSections()
2377 [](const SectionBase *Lhs, const SectionBase *Rhs) { in layoutSections()
2394 std::vector<SectionBase *> Sections; in layoutSectionsForOnlyKeepDebug()
2402 [](const SectionBase *Lhs, const SectionBase *Rhs) { in layoutSectionsForOnlyKeepDebug()
2454 const SectionBase *FirstSec = Seg->firstSection(); in layoutSegmentsForOnlyKeepDebug()
2459 for (const SectionBase *Sec : Seg->Sections) { in layoutSegmentsForOnlyKeepDebug()
2565 return Obj.removeSections(false, [&](const SectionBase &Sec) { in removeUnneededSections()
2585 for (SectionBase &Sec : Obj.sections()) in finalize()
2598 [](const SectionBase &Sec) { return Sec.HasSymbol; }); in finalize()
2619 [this](const SectionBase &Sec) { in finalize()
2629 for (const SectionBase &Sec : Obj.sections()) in finalize()
2639 for (SectionBase &Sec : Obj.sections()) { in finalize()
2653 for (SectionBase &Sec : Obj.sections()) in finalize()
2667 for (SectionBase &Sec : Obj.sections()) { in finalize()
2687 SmallVector<const SectionBase *, 30> SectionsToWrite; in write()
2688 for (const SectionBase &Sec : Obj.allocSections()) { in write()
2697 [](const SectionBase *LHS, const SectionBase *RHS) { in write()
2704 const SectionBase &Sec = *SectionsToWrite[i]; in write()
2730 for (SectionBase &Sec : Obj.allocSections()) { in finalize()
2743 for (SectionBase &Sec : Obj.allocSections()) in finalize()
2758 Error ASCIIHexWriter::checkSection(const SectionBase &S) const { in checkSection()
2775 for (const SectionBase &S : Obj.sections()) { in finalize()
2783 llvm::sort(Sections, [](const SectionBase *A, const SectionBase *B) { in finalize()
2836 for (const SectionBase *Sec : Sections) in getTotalSize()
2850 for (const SectionBase *Sec : Sections) in write()
2911 void SRECSectionWriterBase::writeSection(const SectionBase &S, in writeSection()
3029 for (const SectionBase *Sec : Sections) in getTotalSize()
3045 for (const SectionBase *S : Sections) { in write()