Lines Matching refs:BSec

3531       ErrorOr<BinarySection &> BSec = BC->getUniqueSectionByName(SectionName);  in updateLKMarkers()  local
3532 assert(BSec && "missing section info for kernel section"); in updateLKMarkers()
3533 if (!BSec->getPatcher()) in updateLKMarkers()
3534 BSec->registerPatcher(std::make_unique<SimpleBinaryPatcher>()); in updateLKMarkers()
3535 LKPatcher = static_cast<SimpleBinaryPatcher *>(BSec->getPatcher()); in updateLKMarkers()
4008 ErrorOr<BinarySection &> BSec = BC->getUniqueSectionByName(SectionName); in rewriteNoteSections() local
4026 if (BSec && BSec->getPatcher()) { in rewriteNoteSections()
4027 Data = BSec->getPatcher()->patchBinary(Dataref); in rewriteNoteSections()
4033 BSec = BC->registerOrUpdateNoteSection( in rewriteNoteSections()
4046 if (BSec && !BSec->isAllocatable()) { in rewriteNoteSections()
4047 assert(BSec->getAlignment() <= Section.sh_addralign && in rewriteNoteSections()
4050 if (BSec->getAllocAddress()) { in rewriteNoteSections()
4053 SectionData = BSec->getOutputData(); in rewriteNoteSections()
4057 OS.write(reinterpret_cast<char *>(SectionData), BSec->getOutputSize()); in rewriteNoteSections()
4058 Size += BSec->getOutputSize(); in rewriteNoteSections()
4061 BSec->setOutputFileOffset(NextAvailableOffset); in rewriteNoteSections()
4062 BSec->flushPendingRelocations(OS, in rewriteNoteSections()
4074 BSec ? BSec->isReadOnly() : false, in rewriteNoteSections()
4075 BSec ? BSec->getELFType() in rewriteNoteSections()
4316 ErrorOr<BinarySection &> BSec = BC->getUniqueSectionByName(SectionName); in getOutputSections() local
4317 assert(BSec && "missing section info for non-allocatable section"); in getOutputSections()
4320 NewSection.sh_offset = BSec->getOutputFileOffset(); in getOutputSections()
4321 NewSection.sh_size = BSec->getOutputSize(); in getOutputSections()
4328 LastFileOffset = BSec->getOutputFileOffset(); in getOutputSections()