Lines Matching defs:SectionBase

50 Error SectionBase::removeSectionReferences(
51 bool, function_ref<bool(const SectionBase *)>) {
55 Error SectionBase::removeSymbols(function_ref<bool(const Symbol &)>) {
59 Error SectionBase::initialize(SectionTableRef) { return Error::success(); }
60 void SectionBase::finalize() {}
61 void SectionBase::markSymbols() {}
62 void SectionBase::replaceSectionReferences(
63 const DenseMap<SectionBase *, SectionBase *> &) {}
64 void SectionBase::onRemove() {}
66 template <class ELFT> void ELFWriter<ELFT>::writeShdr(const SectionBase &Sec) {
343 static uint64_t sectionPhysicalAddr(const SectionBase *Sec) {
351 void IHexSectionWriterBase::writeSection(const SectionBase *Sec,
557 CompressedSection::CompressedSection(const SectionBase &Sec,
560 : SectionBase(Sec), CompressionType(CompressionType),
715 SectionBase *DefinedIn, uint64_t Value,
740 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) {
780 const DenseMap<SectionBase *, SectionBase *> &FromTo) {
782 if (SectionBase *To = FromTo.lookup(Sym->DefinedIn))
900 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) {
943 Expected<SectionBase *> Sec =
1025 const DenseMap<SectionBase *, SectionBase *> &FromTo) {
1027 if (SectionBase *To = FromTo.lookup(SecToApplyRel))
1045 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) {
1066 function_ref<bool(const SectionBase *)> ToRemove) {
1090 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) {
1120 const DenseMap<SectionBase *, SectionBase *> &FromTo) {
1121 for (SectionBase *&Sec : GroupMembers)
1122 if (SectionBase *To = FromTo.lookup(Sec))
1129 for (SectionBase *Sec : GroupMembers)
1137 Expected<SectionBase *> Sec =
1202 for (SectionBase *S : Sec.GroupMembers)
1216 static bool sectionWithinSegment(const SectionBase &Sec, const Segment &Seg) {
1303 for (SectionBase &Sec : Obj->sections())
1435 for (const SectionBase &Sec : Obj.sections()) {
1476 for (SectionBase &Sec : Obj.sections())
1551 Expected<SectionBase *> Sec = SecTable.getSection(
1581 SectionBase *DefSection = nullptr;
1612 Expected<SectionBase *> Sec = Obj.sections().getSection(
1629 Expected<SectionBase *> Sec = Obj.sections().getSection(
1682 Expected<SectionBase *> SectionTableRef::getSection(uint32_t Index,
1693 Expected<SectionBase *> BaseSec = getSection(Index, IndexErrMsg);
1704 Expected<SectionBase &> ELFBuilder<ELFT>::makeSection(const Elf_Shdr &Shdr) {
1796 Expected<SectionBase &> Sec = makeSection(Shdr);
1873 for (SectionBase &Sec : Obj.sections()) {
2106 for (SectionBase &Sec : Obj.sections())
2111 for (SectionBase &Sec : Obj.sections())
2130 SectionBase *Sec = it.first;
2190 Error Object::updateSectionData(SectionBase &S, ArrayRef<uint8_t> Data) {
2198 bool AllowBrokenLinks, std::function<bool(const SectionBase &)> ToRemove) {
2228 std::unordered_set<const SectionBase *> RemoveSections;
2244 AllowBrokenLinks, [&RemoveSections](const SectionBase *Sec) {
2259 const DenseMap<SectionBase *, SectionBase *> &FromTo) {
2276 [=](const SectionBase &Sec) { return FromTo.count(&Sec) > 0; }))
2295 for (SectionBase &Sec : sections()) {
2370 std::vector<SectionBase *> OutOfSegmentSections;
2383 [](const SectionBase *Lhs, const SectionBase *Rhs) {
2400 std::vector<SectionBase *> Sections;
2408 [](const SectionBase *Lhs, const SectionBase *Rhs) {
2460 const SectionBase *FirstSec = Seg->firstSection();
2465 for (const SectionBase *Sec : Seg->Sections) {
2571 return Obj.removeSections(false, [&](const SectionBase &Sec) {
2591 for (SectionBase &Sec : Obj.sections())
2604 [](const SectionBase &Sec) { return Sec.HasSymbol; });
2625 [this](const SectionBase &Sec) {
2635 for (const SectionBase &Sec : Obj.sections())
2645 for (SectionBase &Sec : Obj.sections()) {
2659 for (SectionBase &Sec : Obj.sections())
2673 for (SectionBase &Sec : Obj.sections()) {
2693 SmallVector<const SectionBase *, 30> SectionsToWrite;
2694 for (const SectionBase &Sec : Obj.allocSections()) {
2703 [](const SectionBase *LHS, const SectionBase *RHS) {
2710 const SectionBase &Sec = *SectionsToWrite[i];
2736 for (SectionBase &Sec : Obj.allocSections()) {
2749 for (SectionBase &Sec : Obj.allocSections())
2764 Error ASCIIHexWriter::checkSection(const SectionBase &S) const {
2781 for (const SectionBase &S : Obj.sections()) {
2789 llvm::sort(Sections, [](const SectionBase *A, const SectionBase *B) {
2842 for (const SectionBase *Sec : Sections)
2856 for (const SectionBase *Sec : Sections)
2917 void SRECSectionWriterBase::writeSection(const SectionBase &S,
3035 for (const SectionBase *Sec : Sections)
3051 for (const SectionBase *S : Sections) {