Home
last modified time | relevance | path

Searched refs:SegName (Results 1 – 16 of 16) sorted by relevance

/src/contrib/llvm-project/llvm/lib/ObjCopy/MachO/
H A DMachOObject.cpp17 Section::Section(StringRef SegName, StringRef SectName) in Section() argument
18 : Segname(SegName), Sectname(SectName), in Section()
19 CanonicalName((Twine(SegName) + Twine(',') + SectName).str()) {} in Section()
21 Section::Section(StringRef SegName, StringRef SectName, StringRef Content) in Section() argument
22 : Segname(SegName), Sectname(SectName), in Section()
23 CanonicalName((Twine(SegName) + Twine(',') + SectName).str()), in Section()
172 StringRef SegName, uint64_t SegVMAddr, uint64_t SegVMSize) { in constructSegment() argument
173 assert(SegName.size() <= sizeof(Seg.segname) && "too long segment name"); in constructSegment()
176 strncpy(Seg.segname, SegName.data(), SegName.size()); in constructSegment()
185 LoadCommand &Object::addSegment(StringRef SegName, uint64_t SegVMSize) { in addSegment() argument
[all …]
H A DMachOObjcopy.cpp321 std::optional<StringRef> SegName = LC.getSegmentName(); in addSection() local
322 if (SegName && SegName == TargetSegName) { in addSection()
342 StringRef SegName; in findSection() local
343 std::tie(SegName, SecName) = SecName.split(","); in findSection()
345 llvm::find_if(O.LoadCommands, [SegName](const LoadCommand &LC) { in findSection()
346 return LC.getSegmentName() == SegName; in findSection()
351 SegName.str().c_str()); in findSection()
361 assert(FoundSec->get()->CanonicalName == (SegName + "," + SecName).str()); in findSection()
H A DMachOObject.h59 Section(StringRef SegName, StringRef SectName);
61 Section(StringRef SegName, StringRef SectName, StringRef Content);
359 LoadCommand &addSegment(StringRef SegName, uint64_t SegVMSize);
H A DMachOReader.cpp33 StringRef SegName(Sec.segname, strnlen(Sec.segname, sizeof(Sec.segname))); in constructSectionCommon() local
35 Section S(SegName, SectName); in constructSectionCommon()
/src/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DDefineExternalSectionStartAndEndSymbols.h138 auto [SegName, SecName] = in identifyMachOSectionStartAndEndSymbols()
140 std::string SectionName = (SegName + "," + SecName).str(); in identifyMachOSectionStartAndEndSymbols()
144 auto [SegName, SecName] = in identifyMachOSectionStartAndEndSymbols()
146 std::string SectionName = (SegName + "," + SecName).str(); in identifyMachOSectionStartAndEndSymbols()
H A DMachOLinkGraphBuilder.cpp90 strcmp(NSec.SegName, "__DWARF") == 0); in isDebugSection()
140 memcpy(&NSec.SegName, Sec64.segname, 16); in createNormalizedSections()
141 NSec.SegName[16] = '\0'; in createNormalizedSections()
153 memcpy(&NSec.SegName, Sec32.segname, 16); in createNormalizedSections()
154 NSec.SegName[16] = '\0'; in createNormalizedSections()
164 dbgs() << " " << NSec.SegName << "," << NSec.SectName << ": " in createNormalizedSections()
190 G->allocateContent(StringRef(NSec.SegName) + "," + NSec.SectName); in createNormalizedSections()
225 formatv("\"{0}/{1}\" [ {2:x16} -- {3:x16} ] ", Cur.SegName, in createNormalizedSections()
227 "overlaps section \"" + Next.SegName + "/" + Next.SectName + "\"" + in createNormalizedSections()
228 formatv("\"{0}/{1}\" [ {2:x16} -- {3:x16} ] ", Next.SegName, in createNormalizedSections()
[all …]
H A DMachOLinkGraphBuilder.h74 char SegName[17]; variable
H A DMachO_x86_64.cpp252 << NSec->SegName << "/" << NSec->SectName in addRelocations()
H A DMachO_arm64.cpp261 << NSec->SegName << "/" << NSec->SectName in addRelocations()
/src/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DMachOBuilder.h236 Section(MachOBuilder &Builder, StringRef SecName, StringRef SegName)
240 assert(SegName.size() <= 16 && "SegName too long");
242 memcpy(this->segname, SegName.data(), SegName.size());
272 Segment(MachOBuilder &Builder, StringRef SegName)
274 assert(SegName.size() <= 16 && "SegName too long");
275 memcpy(this->segname, SegName.data(), SegName.size());
281 Section &addSection(StringRef SecName, StringRef SegName) {
282 Sections.push_back(std::make_unique<Section>(Builder, SecName, SegName));
318 Segment &addSegment(StringRef SegName) {
319 Segments.push_back(Segment(*this, SegName));
/src/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/Shared/
H A DObjectFormats.cpp81 bool isMachOInitializerSection(StringRef SegName, StringRef SecName) { in isMachOInitializerSection() argument
86 if (InitSection.starts_with(SegName) && InitSection.substr(7) == SecName) in isMachOInitializerSection()
/src/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/Debugging/
H A DDebuggerSupportPlugin.cpp142 auto [SegName, SecName] = DSec.GraphSec->getName().split(','); in startSynthesis()
143 DSec.BuilderSec = &Seg->addSection(SecName, SegName); in startSynthesis()
201 auto [SegName, SecName] = NDSP.GraphSec->getName().split(','); in startSynthesis()
202 NDSP.BuilderSec = &Seg->addSection(SecName, SegName); in startSynthesis()
/src/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/
H A DObjectFormats.h71 bool isMachOInitializerSection(StringRef SegName, StringRef SecName);
/src/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DObjectFileInterface.cpp87 auto SegName = Obj.getSectionFinalSegmentName(Sec.getRawDataRefImpl()); in getMachOObjectFileSymbolInfo() local
89 if (isMachOInitializerSection(SegName, SecName)) { in getMachOObjectFileSymbolInfo()
/src/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DMachODump.cpp310 StringRef SegName = SLC.segname; in getSectionsAndSymbols() local
311 if (!BaseSegmentAddressSet && SegName != "__PAGEZERO") { in getSectionsAndSymbols()
317 StringRef SegName = SLC.segname; in getSectionsAndSymbols() local
318 if (!BaseSegmentAddressSet && SegName != "__PAGEZERO") { in getSectionsAndSymbols()
945 StringRef SegName = O->getSectionFinalSegmentName(DRI); in PrintRelocationEntries() local
947 outs() << "(" << SegName << "," << *NameOrErr << ")\n"; in PrintRelocationEntries()
1001 const StringRef SegName = O->getSectionFinalSegmentName(DRI); in PrintRelocations() local
1003 outs() << "Relocation information (" << SegName << "," << *NameOrErr in PrintRelocations()
1006 outs() << "Relocation information (" << SegName << ",?) " in PrintRelocations()
1021 const StringRef SegName = O->getSectionFinalSegmentName(DRI); in PrintRelocations() local
[all …]
/src/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DMachODumper.cpp308 std::string SegName; member
376 Segment.SegName = SC.segname; in getSegment()
390 Segment.SegName = SC.segname; in getSegment()
932 W.printString("Name", MOSegment.SegName); in printMachOSegment()