Lines Matching refs:BinarySection

309 bool refersToReorderedSection(ErrorOr<BinarySection &> Section) {  in refersToReorderedSection()
837 BinarySection Section(*BC, *cantFail(Sym.getSection())); in discoverFileObjects()
956 ErrorOr<BinarySection &> BSection = BC->getSectionForAddress(Address); in discoverFileObjects()
1154 ErrorOr<BinarySection &> Section = BC->getSectionForAddress(Address); in discoverFileObjects()
1207 ErrorOr<BinarySection &> Section = BC->getSectionForAddress(Address); in discoverFileObjects()
1277 ErrorOr<BinarySection &> Section = BC->getSectionForAddress(EntryAddress); in createPLTBinaryFunction()
1285 void RewriteInstance::disassemblePLTSectionAArch64(BinarySection &Section) { in disassemblePLTSectionAArch64()
1345 void RewriteInstance::disassemblePLTSectionX86(BinarySection &Section, in disassemblePLTSectionX86()
1401 auto analyzeOnePLTSection = [&](BinarySection &Section, uint64_t EntrySize) { in disassemblePLT()
1407 for (BinarySection &Section : BC->allocatableSections()) { in disassemblePLT()
1606 if (ErrorOr<BinarySection &> BATSec = in readSpecialSections()
1902 ErrorOr<BinarySection &> Section = BC->getSectionForAddress(SymbolAddress); in analyzeRelocation()
1971 ErrorOr<BinarySection &> PLTRelSectionOrErr = in processDynamicRelocations()
1985 ErrorOr<BinarySection &> DynamicRelSectionOrErr = in processDynamicRelocations()
2004 !BinarySection(*BC, Section).isAllocatable()) in processRelocations()
2047 ErrorOr<BinarySection &> SectionOrError = in processLKExTable()
2102 ErrorOr<BinarySection &> SectionOrError = in processLKPCIFixup()
2134 ErrorOr<BinarySection &> SectionOrError = in processLKKSymtab()
2166 ErrorOr<BinarySection &> SectionOrError = in processLKBugTable()
2192 ErrorOr<BinarySection &> SectionOrError = in processLKSMPLocks()
2220 assert(BinarySection(*BC, Section).isAllocatable() && "allocatable expected"); in readDynamicRelocations()
2273 if (BinarySection(*BC, Section).isAllocatable()) { in readRelocations()
2285 if (!BinarySection(*BC, RelocatedSection).isAllocatable()) { in readRelocations()
2311 ErrorOr<BinarySection &> Section = BC->getSectionForAddress(SymbolAddress); in readRelocations()
2411 ErrorOr<BinarySection &> ReferencedSection = in readRelocations()
2545 !BinarySection(*BC, RelocatedSection).isReadOnly()) in readRelocations()
3175 ErrorOr<BinarySection &> Section = Function->getCodeSection(); in emitAndLink()
3187 if (ErrorOr<BinarySection &> ColdSection = Function->getColdCodeSection()) in emitAndLink()
3531 ErrorOr<BinarySection &> BSec = BC->getUniqueSectionByName(SectionName); in updateLKMarkers()
3557 std::vector<BinarySection *> RewriteInstance::getCodeSections() { in getCodeSections()
3558 std::vector<BinarySection *> CodeSections; in getCodeSections()
3559 for (BinarySection &Section : BC->textSections()) in getCodeSections()
3563 auto compareSections = [&](const BinarySection *A, const BinarySection *B) { in getCodeSections()
3585 ErrorOr<BinarySection &> TextSection = in mapCodeSections()
3596 ErrorOr<BinarySection &> FunctionSection = in mapCodeSections()
3607 std::vector<BinarySection *> CodeSections = getCodeSections(); in mapCodeSections()
3610 llvm::erase_if(CodeSections, [](BinarySection *Section) { in mapCodeSections()
3614 for (const BinarySection *Section : CodeSections) in mapCodeSections()
3622 for (BinarySection *Section : CodeSections) { in mapCodeSections()
3664 for (BinarySection *Section : CodeSections) { in mapCodeSections()
3693 ErrorOr<BinarySection &> FuncSection = Function.getCodeSection(); in mapCodeSections()
3713 BinarySection &Section = JT->getOutputSection(); in mapCodeSections()
3726 ErrorOr<BinarySection &> ColdSection = Function.getColdCodeSection(); in mapCodeSections()
3762 const unsigned Flags = BinarySection::getFlags(/*IsReadOnly=*/true, in mapCodeSections()
3765 BinarySection &Section = in mapCodeSections()
3789 ErrorOr<BinarySection &> Section = BC->getUniqueSectionByName(SectionName); in mapDataSections()
3811 for (BinarySection &Section : BC->sections()) { in mapDataSections()
3816 ErrorOr<BinarySection &> OrgSection = in mapDataSections()
3846 for (BinarySection &Section : BC->allocatableSections()) { in mapExtraSections()
3934 ErrorOr<BinarySection &> EHFrameHdrSec = in patchELFPHDRTable()
4008 ErrorOr<BinarySection &> BSec = BC->getUniqueSectionByName(SectionName); in rewriteNoteSections()
4069 BinarySection &NewSection = in rewriteNoteSections()
4084 for (BinarySection &Section : BC->nonAllocatableSections()) { in rewriteNoteSections()
4120 for (const BinarySection &Section : BC->sections()) in finalizeSectionStringTable()
4148 BinarySection::encodeELFNote("GNU", DescStr, 4 /*NT_GNU_GOLD_VERSION*/); in addBoltInfoSection()
4170 BinarySection::encodeELFNote("BOLT", DescStr, BinarySection::NT_BOLT_BAT); in encodeBATSection()
4240 for (const BinarySection &Section : BC->allocatableSections()) { in getOutputSections()
4316 ErrorOr<BinarySection &> BSec = BC->getUniqueSectionByName(SectionName); in getOutputSections()
4332 for (BinarySection &Section : BC->nonAllocatableSections()) { in getOutputSections()
4359 if (ErrorOr<BinarySection &> Section = in getOutputSections()
4661 BinarySection &OutputSection = BD->getOutputSection(); in updateELFSymbolTable()
4734 BinarySection *OriginSection = Function->getOriginSection(); in updateELFSymbolTable()
4912 ErrorOr<BinarySection &> Section = BC->getSectionForAddress(Address); in patchELFAllocatableRelaSections()
4936 for (BinarySection &Section : BC->allocatableSections()) { in patchELFAllocatableRelaSections()
5272 BinarySection &Section = JT->getOutputSection(); in rewriteFile()
5355 for (BinarySection &Section : BC->allocatableSections()) { in rewriteFile()
5368 for (BinarySection &Section : BC->allocatableSections()) in rewriteFile()
5430 ErrorOr<BinarySection &> OldEHFrameSection = in writeEHFrameHeader()
5457 const unsigned Flags = BinarySection::getFlags(/*IsReadOnly=*/true, in writeEHFrameHeader()
5460 BinarySection &EHFrameHdrSec = BC->registerOrUpdateSection( in writeEHFrameHeader()
5526 ErrorOr<BinarySection &> Section = BC->getUniqueSectionByName(SectionName); in willOverwriteSection()