Lines Matching refs:MCSectionELF

70 using SectionIndexMapTy = DenseMap<const MCSectionELF *, uint32_t>;
75 bool isDwoSection(const MCSectionELF &Sec) { in isDwoSection()
152 std::vector<const MCSectionELF *> SectionTable;
153 unsigned addToSectionTable(const MCSectionELF *Sec);
189 std::map<const MCSectionELF *, std::pair<uint64_t, uint64_t>>;
206 MCSectionELF *createRelocationSection(MCContext &Ctx,
207 const MCSectionELF &Sec);
209 const MCSectionELF *createStringTable(MCContext &Ctx);
223 void writeRelocations(const MCAssembler &Asm, const MCSectionELF &Sec);
228 const MCSectionELF &Section);
235 DenseMap<const MCSectionELF *, std::vector<ELFRelocationEntry>> Relocations;
265 const MCSectionELF *From, in checkRelocation()
266 const MCSectionELF *To) { in checkRelocation()
315 const MCSectionELF *From, in checkRelocation()
316 const MCSectionELF *To) override { in checkRelocation()
344 unsigned ELFWriter::addToSectionTable(const MCSectionELF *Sec) { in addToSectionTable()
619 MCSectionELF *SymtabSection = in computeSymbolTable()
670 const MCSectionELF &Section = in computeSymbolTable()
671 static_cast<const MCSectionELF &>(Symbol.getSection()); in computeSymbolTable()
712 MCSectionELF *SymtabShndxSection = in computeSymbolTable()
768 const MCSectionELF *SymtabShndxSection = in computeSymbolTable()
781 MCSectionELF *ELFWriter::createRelocationSection(MCContext &Ctx, in createRelocationSection()
782 const MCSectionELF &Sec) { in createRelocationSection()
800 MCSectionELF *RelaSection = Ctx.createELFRelSection( in createRelocationSection()
844 MCSectionELF &Section = static_cast<MCSectionELF &>(Sec); in writeSectionData()
911 const MCSectionELF &Sec) { in writeRelocations()
975 const MCSectionELF *ELFWriter::createStringTable(MCContext &Ctx) { in createStringTable()
976 const MCSectionELF *StrtabSection = SectionTable[StringTableIndex - 1]; in createStringTable()
983 uint64_t Size, const MCSectionELF &Section) { in writeSection()
1000 sh_info = SectionIndexMap.lookup(cast<MCSectionELF>(InfoSection)); in writeSection()
1023 const MCSectionELF *Sec = cast<MCSectionELF>(&Sym->getSection()); in writeSection()
1043 for (const MCSectionELF *Section : SectionTable) { in writeSectionHeader()
1068 MCSectionELF *StrtabSection = in writeObject()
1075 std::map<const MCSymbol *, std::vector<const MCSectionELF *>> GroupMembers; in writeObject()
1082 std::vector<MCSectionELF *> Groups; in writeObject()
1083 std::vector<MCSectionELF *> Relocations; in writeObject()
1085 MCSectionELF &Section = static_cast<MCSectionELF &>(Sec); in writeObject()
1102 MCSectionELF *RelSection = createRelocationSection(Ctx, Section); in writeObject()
1108 MCSectionELF *Group = Ctx.createELFGroupSection(SignatureSymbol); in writeObject()
1113 std::vector<const MCSectionELF *> &Members = in writeObject()
1129 MCSectionELF *CGProfileSection = nullptr; in writeObject()
1137 for (MCSectionELF *Group : Groups) { in writeObject()
1146 for (const MCSectionELF *Member : GroupMembers[SignatureSymbol]) { in writeObject()
1160 MCSectionELF *AddrsigSection; in writeObject()
1171 for (MCSectionELF *RelSection : Relocations) { in writeObject()
1178 cast<MCSectionELF>(*RelSection->getAssociatedSection())); in writeObject()
1205 const MCSectionELF *Sec = createStringTable(Ctx); in writeObject()
1376 auto &Sec = cast<MCSectionELF>(Sym->getSection()); in shouldRelocateWithSymbol()
1416 const MCSectionELF &FixupSection = cast<MCSectionELF>(*Fragment->getParent()); in recordRelocation()
1488 const MCSectionELF *SecA = (SymA && SymA->isInSection()) in recordRelocation()
1489 ? cast<MCSectionELF>(&SymA->getSection()) in recordRelocation()