Home
last modified time | relevance | path

Searched refs:SectionName (Results 1 – 25 of 139) sorted by relevance

123456

/llvm-project-15.0.7/bolt/lib/Rewrite/
H A DExecutableFileMemoryManager.cpp30 if (!ObjectsLoaded && RewriteInstance::isDebugSection(SectionName)) { in allocateSection()
39 if (!IsCode && (SectionName == ".strtab" || SectionName == ".symtab" || in allocateSection()
40 SectionName == "" || SectionName.startswith(".rela."))) in allocateSection()
47 SectionName); in allocateSection()
55 SectionName = (Twine(SectionName) + ".bolt.extra." + Twine(ObjectsLoaded)) in allocateSection()
58 assert((SectionName == "__text" || SectionName == "__data" || in allocateSection()
59 SectionName == "__fini" || SectionName == "__setup" || in allocateSection()
60 SectionName == "__cstring" || SectionName == "__literal16") && in allocateSection()
63 SectionName = ("I" + Twine(SectionName)).toStringRef(Buf); in allocateSection()
68 SectionName, ELF::SHT_PROGBITS, in allocateSection()
[all …]
H A DRewriteInstance.cpp461 if (SectionName == ".text") { in discoverStorage()
1574 if (!SectionName.empty()) { in readSpecialSections()
3529 StringRef SectionName = LKMarkerInfo.SectionName; in updateLKMarkers() local
4006 StringRef SectionName = in rewriteNoteSections() local
4111 StringRef SectionName = in finalizeSectionStringTable() local
4113 SHStrTab.add(SectionName); in finalizeSectionStringTable()
4183 StringRef SectionName = in getOutputSectionName() local
4310 StringRef SectionName = in getOutputSections() local
5016 if (SectionName == ".got") { in patchELFGOT()
5531 if (SectionName.startswith(".debug_") || SectionName.startswith(".zdebug_") || in isDebugSection()
[all …]
H A DMachORewriteInstance.cpp152 Expected<StringRef> SectionName = Section.getName();; in readSpecialSections() local
153 check_error(SectionName.takeError(), "cannot get section name"); in readSpecialSections()
155 if (!SectionName->empty()) { in readSpecialSections()
158 dbgs() << "BOLT-DEBUG: registering section " << *SectionName in readSpecialSections()
388 void MachORewriteInstance::mapInstrumentationSection(StringRef SectionName) { in mapInstrumentationSection() argument
391 ErrorOr<BinarySection &> Section = BC->getUniqueSectionByName(SectionName); in mapInstrumentationSection()
393 llvm::errs() << "Cannot find " + SectionName + " section\n"; in mapInstrumentationSection()
543 void MachORewriteInstance::writeInstrumentationSection(StringRef SectionName, in writeInstrumentationSection() argument
547 ErrorOr<BinarySection &> Section = BC->getUniqueSectionByName(SectionName); in writeInstrumentationSection()
549 llvm::errs() << "Cannot find " + SectionName + " section\n"; in writeInstrumentationSection()
/llvm-project-15.0.7/llvm/include/llvm/MC/
H A DMCContext.h260 : SectionName(SectionName), GroupName(GroupName), in ELFSectionKey()
264 if (SectionName != Other.SectionName)
265 return SectionName < Other.SectionName;
282 : SectionName(SectionName), GroupName(GroupName), in COFFSectionKey()
286 if (SectionName != Other.SectionName)
287 return SectionName < Other.SectionName;
306 if (SectionName != Other.SectionName)
307 return SectionName < Other.SectionName;
332 : SectionName(SectionName), DwarfSubtypeFlags(DwarfSubtypeFlags), in XCOFFSectionKey()
397 if (SectionName != Other.SectionName)
[all …]
/llvm-project-15.0.7/llvm/lib/MC/MCParser/
H A DELFAsmParser.cpp250 SectionName = getTok().getIdentifier(); in ParseSectionName()
505 (SectionName.empty() || SectionName[0] == '.'); in hasPrefix()
526 StringRef SectionName; in ParseSectionArguments() local
528 if (ParseSectionName(SectionName)) in ParseSectionArguments()
543 if (hasPrefix(SectionName, ".rodata") || SectionName == ".rodata1") in ParseSectionArguments()
545 else if (SectionName == ".fini" || SectionName == ".init" || in ParseSectionArguments()
546 hasPrefix(SectionName, ".text")) in ParseSectionArguments()
548 else if (hasPrefix(SectionName, ".data") || SectionName == ".data1" || in ParseSectionArguments()
549 hasPrefix(SectionName, ".bss") || in ParseSectionArguments()
554 else if (hasPrefix(SectionName, ".tdata") || hasPrefix(SectionName, ".tbss")) in ParseSectionArguments()
[all …]
H A DCOFFAsmParser.cpp47 bool ParseSectionName(StringRef &SectionName);
48 bool ParseSectionFlags(StringRef SectionName, StringRef FlagsString,
159 bool COFFAsmParser::ParseSectionFlags(StringRef SectionName, in ParseSectionFlags() argument
260 MCSectionCOFF::isImplicitlyDiscardable(SectionName)) in ParseSectionFlags()
328 bool COFFAsmParser::ParseSectionName(StringRef &SectionName) { in ParseSectionName() argument
332 SectionName = getTok().getIdentifier(); in ParseSectionName()
353 StringRef SectionName; in ParseDirectiveSection() local
355 if (ParseSectionName(SectionName)) in ParseDirectiveSection()
371 if (ParseSectionFlags(SectionName, FlagsStr, &Flags)) in ParseDirectiveSection()
407 ParseSectionSwitch(SectionName, Flags, Kind, COMDATSymName, Type); in ParseDirectiveSection()
/llvm-project-15.0.7/bolt/include/bolt/Rewrite/
H A DExecutableFileMemoryManager.h26 unsigned SectionID, StringRef SectionName,
47 StringRef SectionName) override { in allocateCodeSection() argument
48 return allocateSection(Size, Alignment, SectionID, SectionName, in allocateCodeSection()
53 unsigned SectionID, StringRef SectionName, in allocateDataSection() argument
55 return allocateSection(Size, Alignment, SectionID, SectionName, in allocateDataSection()
62 StringRef SectionName) override { in allocateTLSSection() argument
66 Size, Alignment, SectionID, SectionName, /*IsReadOnly=*/false); in allocateTLSSection()
H A DRewriteInstance.h114 StringRef SectionName);
314 bool shouldStrip(const ELFShdrTy &Section, StringRef SectionName);
365 bool willOverwriteSection(StringRef SectionName);
389 static bool isDebugSection(StringRef SectionName);
392 static bool isKSymtabSection(StringRef SectionName);
506 const PLTSectionInfo *getPLTSectionInfo(StringRef SectionName) { in getPLTSectionInfo() argument
519 if (SectionName == PLTSI->Name) in getPLTSectionInfo()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUMCAsmInfo.cpp49 bool AMDGPUMCAsmInfo::shouldOmitSectionDirective(StringRef SectionName) const { in shouldOmitSectionDirective()
50 return SectionName == ".hsatext" || SectionName == ".hsadata_global_agent" || in shouldOmitSectionDirective()
51 SectionName == ".hsadata_global_program" || in shouldOmitSectionDirective()
52 SectionName == ".hsarodata_readonly_agent" || in shouldOmitSectionDirective()
53 MCAsmInfo::shouldOmitSectionDirective(SectionName); in shouldOmitSectionDirective()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/JITLink/
H A DDWARFRecordSectionSplitter.cpp17 DWARFRecordSectionSplitter::DWARFRecordSectionSplitter(StringRef SectionName) in DWARFRecordSectionSplitter() argument
18 : SectionName(SectionName) {} in DWARFRecordSectionSplitter()
21 auto *Section = G.findSectionByName(SectionName); in operator ()()
25 dbgs() << "DWARFRecordSectionSplitter: No " << SectionName in operator ()()
32 dbgs() << "DWARFRecordSectionSplitter: Processing " << SectionName in operator ()()
70 SectionName + " section"); in processBlock()
/llvm-project-15.0.7/llvm/lib/DebugInfo/DWARF/
H A DDWARFListTable.cpp28 SectionName.data(), HeaderOffset, toString(std::move(Err)).c_str()); in extract()
38 SectionName.data(), HeaderOffset, FullLength); in extract()
45 SectionName.data(), FullLength, HeaderOffset); in extract()
57 SectionName.data(), HeaderData.Version, HeaderOffset); in extract()
60 "%s table at offset 0x%" PRIx64, SectionName.data(), HeaderOffset)) in extract()
66 SectionName.data(), HeaderOffset, HeaderData.SegSize); in extract()
72 SectionName.data(), HeaderOffset, HeaderData.OffsetEntryCount); in extract()
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFListTable.h49 uint64_t *OffsetPtr, StringRef SectionName,
80 StringRef SectionName; variable
86 DWARFListTableHeader(StringRef SectionName, StringRef ListTypeString) in DWARFListTableHeader() argument
87 : SectionName(SectionName), ListTypeString(ListTypeString) {} in DWARFListTableHeader()
97 StringRef getSectionName() const { return SectionName; } in getSectionName()
156 DWARFListTableBase(StringRef SectionName, StringRef HeaderString, in DWARFListTableBase() argument
158 : Header(SectionName, ListTypeString), HeaderString(HeaderString) {} in DWARFListTableBase()
229 StringRef SectionName, in extract() argument
247 SectionName.data(), HeaderOffset); in extract()
/llvm-project-15.0.7/llvm/tools/llvm-rtdyld/
H A Dllvm-rtdyld.cpp179 auto J = SectionIDs.find(SectionName); in getSectionId()
204 StringRef SectionName) override;
210 StringRef SectionName) override;
302 (*SecIDMap)[SectionName] = SectionID; in allocateCodeSection()
306 SectionName, SectionID); in allocateCodeSection()
331 (*SecIDMap)[SectionName] = SectionID; in allocateDataSection()
346 DataMemory.push_back(SectionInfo(SectionName, MB, SectionID)); in allocateDataSection()
362 StringRef SectionName) { in allocateTLSSection() argument
661 std::string SectionName = SectionIDStr.substr(ComaIdx + 1); in applySpecificSectionMappings() local
843 StringRef SectionName, in linkAndVerify()
[all …]
/llvm-project-15.0.7/llvm/lib/MC/
H A DMCAsmInfo.cpp137 bool MCAsmInfo::shouldOmitSectionDirective(StringRef SectionName) const { in shouldOmitSectionDirective()
139 return SectionName == ".text" || SectionName == ".data" || in shouldOmitSectionDirective()
140 (SectionName == ".bss" && !usesELFSectionDirectiveForBSS()); in shouldOmitSectionDirective()
H A DMCContext.cpp560 StringRef CachedName = Entry.first.SectionName; in getELFSection()
593 ELFSeenGenericMergeableSections.insert(SectionName); in recordELFMergeableSectionInfo()
598 if (IsMergeable || isELFGenericMergeableSection(SectionName)) { in recordELFMergeableSectionInfo()
605 return SectionName.startswith(".rodata.str") || in isELFImplicitMergeableSectionNamePrefix()
606 SectionName.startswith(".rodata.cst"); in isELFImplicitMergeableSectionNamePrefix()
610 return isELFImplicitMergeableSectionNamePrefix(SectionName) || in isELFGenericMergeableSection()
611 ELFSeenGenericMergeableSections.count(SectionName); in isELFGenericMergeableSection()
618 MCContext::ELFEntrySizeKey{SectionName, Flags, EntrySize}); in getELFUniqueIDForEntsize()
658 StringRef CachedName = Iter->first.SectionName; in getCOFFSection()
723 StringRef CachedName = Entry.first.SectionName; in getWasmSection()
[all …]
/llvm-project-15.0.7/llvm/unittests/ObjCopy/
H A DObjCopyTest.cpp151 bool hasSection(ObjectFile &File, StringRef SectionName) { in hasSection() argument
157 if (*CurSecNameOrErr == SectionName) in hasSection()
166 void checkSectionData(ObjectFile &File, StringRef SectionName, in checkSectionData() argument
172 if (*CurSecNameOrErr == SectionName) { in checkSectionData()
336 StringRef SectionWildcard, StringRef SectionName) { in removeSectionByPatternImpl() argument
347 EXPECT_TRUE(hasSection(**Obj, SectionName)); in removeSectionByPatternImpl()
365 hasSection(*static_cast<ObjectFile *>((*Result).get()), SectionName)); in removeSectionByPatternImpl()
/llvm-project-15.0.7/llvm/tools/llvm-dwarfdump/
H A DSectionSizes.cpp86 StringRef SectionName; in calculateSectionSizes() local
88 SectionName = *NameOrErr; in calculateSectionSizes()
93 LLVM_DEBUG(dbgs() << SectionName.str() << ": " << Section.getSize() in calculateSectionSizes()
100 Sizes.DebugSectionSizes[std::string(SectionName)] += Section.getSize(); in calculateSectionSizes()
/llvm-project-15.0.7/llvm/test/tools/yaml2obj/XCOFF/
H A Dsymbol-section.yaml3 ## Case1: a symbol can reference a section by SectionName or SectionIndex.
37 ## Case 2: a symbol can reference a section by both SectionName and SectionIndex.
67 # CASE3: the SectionName .text and the SectionIndex (0) refer to different sections
76 ## Case 5: if a symbol references a non-existent section by SectionName,
81 # CASE5: the SectionName .data specified in the symbol does not exist
/llvm-project-15.0.7/llvm/unittests/MC/
H A DDwarfLineTableHeaders.cpp149 StringRef SectionName = *SectionNameOrErr; in verifyDebugLineContents() local
150 if (SectionName.empty() || SectionName != ".debug_line") in verifyDebugLineContents()
169 StringRef SectionName = *SectionNameOrErr; in verifyDebugLineStrContents() local
170 if (SectionName.empty() || SectionName != ".debug_line_str") in verifyDebugLineStrContents()
/llvm-project-15.0.7/llvm/lib/Remarks/
H A DRemarkLinker.cpp39 Expected<StringRef> SectionName = getRemarksSectionName(Obj); in getRemarksSectionContents() local
40 if (!SectionName) in getRemarksSectionContents()
41 return SectionName.takeError(); in getRemarksSectionContents()
47 if (*MaybeName != *SectionName) in getRemarksSectionContents()
/llvm-project-15.0.7/llvm/tools/lli/
H A DForwardingMemoryManager.h35 StringRef SectionName) override { in allocateCodeSection() argument
36 return MemMgr->allocateCodeSection(Size, Alignment, SectionID, SectionName); in allocateCodeSection()
40 unsigned SectionID, StringRef SectionName, in allocateDataSection() argument
42 return MemMgr->allocateDataSection(Size, Alignment, SectionID, SectionName, in allocateDataSection()
/llvm-project-15.0.7/llvm/include/llvm/Object/
H A DIRSymtab.h130 Str SectionName; member
179 StringRef SectionName; member
231 StringRef getSectionName() const { return SectionName; } in getSectionName()
331 SectionName = R->str(UncI->SectionName); in read()
334 SectionName = ""; in read()
/llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/JITLink/
H A DDWARFRecordSectionSplitter.h23 DWARFRecordSectionSplitter(StringRef SectionName);
29 StringRef SectionName; variable
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetObjectFile.cpp32 StringRef SectionName = GO->getSection(); in getExplicitSectionGlobal() local
33 if (SectionName.startswith(".AMDGPU.comment.")) in getExplicitSectionGlobal()
/llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/
H A DRuntimeDyld.h65 StringRef FileName, StringRef SectionName, StringRef SymbolName,
105 StringRef SectionName) = 0;
112 StringRef SectionName,
127 StringRef SectionName);

123456