Lines Matching refs:SectionName

311       llvm::find_if(opts::ReorderData, [&](const std::string &SectionName) {  in refersToReorderedSection()  argument
312 return (Section && Section->getName() == SectionName); in refersToReorderedSection()
460 StringRef SectionName = SectionNameOrErr.get(); in discoverStorage() local
461 if (SectionName == ".text") { in discoverStorage()
475 (SectionName.startswith(getOrgSecPrefix()) || in discoverStorage()
476 SectionName == getBOLTTextSectionName())) in discoverStorage()
1571 StringRef SectionName = *SectionNameOrErr; in readSpecialSections() local
1574 if (!SectionName.empty()) { in readSpecialSections()
1579 dbgs() << "BOLT-DEBUG: registering section " << SectionName << " @ 0x" in readSpecialSections()
1583 if (isDebugSection(SectionName)) in readSpecialSections()
1585 if (isKSymtabSection(SectionName)) in readSpecialSections()
2015 bool IsPCRelative, StringRef SectionName) { in insertLKMarker() argument
2017 SectionOffset, PCRelativeOffset, IsPCRelative, SectionName}); in insertLKMarker()
2131 StringRef SectionName = "__ksymtab"; in processLKKSymtab() local
2133 SectionName = "__ksymtab_gpl"; in processLKKSymtab()
2135 BC->getUniqueSectionByName(SectionName); in processLKKSymtab()
2223 StringRef SectionName = cantFail(Section.getName()); in readDynamicRelocations()
2224 dbgs() << "BOLT-DEBUG: reading relocations for section " << SectionName in readDynamicRelocations()
2269 StringRef SectionName = cantFail(Section.getName()); in readRelocations()
2270 dbgs() << "BOLT-DEBUG: reading relocations for section " << SectionName in readRelocations()
3529 StringRef SectionName = LKMarkerInfo.SectionName; in updateLKMarkers() local
3531 ErrorOr<BinarySection &> BSec = BC->getUniqueSectionByName(SectionName); in updateLKMarkers()
3536 PatchCounts[std::string(SectionName)]++; in updateLKMarkers()
3788 for (std::string &SectionName : Sections) { in mapDataSections()
3789 ErrorOr<BinarySection &> Section = BC->getUniqueSectionByName(SectionName); in mapDataSections()
3794 LLVM_DEBUG(dbgs() << "BOLT: mapping section " << SectionName << " (0x" in mapDataSections()
3815 StringRef SectionName = Section.getName(); in mapDataSections() local
3817 BC->getUniqueSectionByName((getOrgSecPrefix() + SectionName).str()); in mapDataSections()
3825 LLVM_DEBUG(dbgs() << "BOLT-DEBUG: section " << SectionName in mapDataSections()
3832 dbgs() << "BOLT: mapping original section " << SectionName << " (0x" in mapDataSections()
4006 StringRef SectionName = in rewriteNoteSections() local
4008 ErrorOr<BinarySection &> BSec = BC->getUniqueSectionByName(SectionName); in rewriteNoteSections()
4010 if (shouldStrip(Section, SectionName)) in rewriteNoteSections()
4022 if (!willOverwriteSection(SectionName)) { in rewriteNoteSections()
4034 SectionName, copyByteArray(Dataref), Dataref.size()); in rewriteNoteSections()
4056 << " contents to section " << SectionName << '\n'); in rewriteNoteSections()
4070 BC->registerOrUpdateNoteSection(SectionName, in rewriteNoteSections()
4111 StringRef SectionName = in finalizeSectionStringTable() local
4113 SHStrTab.add(SectionName); in finalizeSectionStringTable()
4115 if (OutputSectionName != SectionName) in finalizeSectionStringTable()
4183 StringRef SectionName = in getOutputSectionName() local
4186 if ((Section.sh_flags & ELF::SHF_ALLOC) && willOverwriteSection(SectionName)) in getOutputSectionName()
4187 return (getOrgSecPrefix() + SectionName).str(); in getOutputSectionName()
4189 return std::string(SectionName); in getOutputSectionName()
4194 StringRef SectionName) { in shouldStrip() argument
4200 if (isDebugSection(SectionName) && !opts::UpdateDebugSections) in shouldStrip()
4310 StringRef SectionName = in getOutputSections() local
4313 if (shouldStrip(Section, SectionName)) in getOutputSections()
4316 ErrorOr<BinarySection &> BSec = BC->getUniqueSectionByName(SectionName); in getOutputSections()
4326 addSection(std::string(SectionName), NewSection); in getOutputSections()
4357 const std::string &SectionName = OutputSections[Index].first; in getOutputSections() local
4358 NameToIndex[SectionName] = Index; in getOutputSections()
4360 BC->getUniqueSectionByName(SectionName)) in getOutputSections()
4372 std::string SectionName = getOutputSectionName(Obj, Section); in getOutputSections() local
4375 if (!NameToIndex.count(SectionName)) in getOutputSections()
4378 NewSectionIndex[OrgIndex] = NameToIndex[SectionName]; in getOutputSections()
5015 StringRef SectionName = cantFail(Section.getName()); in patchELFGOT() local
5016 if (SectionName == ".got") { in patchELFGOT()
5518 bool RewriteInstance::willOverwriteSection(StringRef SectionName) { in willOverwriteSection() argument
5520 if (SectionName == OverwriteName) in willOverwriteSection()
5523 if (SectionName == OverwriteName) in willOverwriteSection()
5526 ErrorOr<BinarySection &> Section = BC->getUniqueSectionByName(SectionName); in willOverwriteSection()
5530 bool RewriteInstance::isDebugSection(StringRef SectionName) { in isDebugSection() argument
5531 if (SectionName.startswith(".debug_") || SectionName.startswith(".zdebug_") || in isDebugSection()
5532 SectionName == ".gdb_index" || SectionName == ".stab" || in isDebugSection()
5533 SectionName == ".stabstr") in isDebugSection()
5539 bool RewriteInstance::isKSymtabSection(StringRef SectionName) { in isKSymtabSection() argument
5540 if (SectionName.startswith("__ksymtab")) in isKSymtabSection()