Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/MachO/
H A DMachOObject.cpp17 Section::Section(StringRef SegName, StringRef SectName) in Section()
18 : Segname(SegName), Sectname(SectName), in Section()
19 CanonicalName((Twine(SegName) + Twine(',') + SectName).str()) {}
21 Section::Section(StringRef SegName, StringRef SectName, StringRef Content) in Section()
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()
173 assert(SegName.size() <= sizeof(Seg.segname) && "too long segment name"); in constructSegment()
176 strncpy(Seg.segname, SegName.data(), SegName in constructSegment()
16 Section(StringRef SegName,StringRef SectName) Section() argument
20 Section(StringRef SegName,StringRef SectName,StringRef Content) Section() argument
171 constructSegment(SegmentType & Seg,llvm::MachO::LoadCommandType CmdType,StringRef SegName,uint64_t SegVMAddr,uint64_t SegVMSize) constructSegment() argument
184 addSegment(StringRef SegName,uint64_t SegVMSize) addSegment() argument
199 extractSegmentName(const char * SegName) extractSegmentName() argument
[all...]
H A DMachOObjcopy.cpp321 std::optional<StringRef> SegName = LC.getSegmentName(); in addSection()
322 if (SegName && SegName == TargetSegName) { in addSection()
342 StringRef SegName; in findSection()
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 updateSection()
313 std::optional<StringRef> SegName = LC.getSegmentName(); addSection() local
334 StringRef SegName; findSection() local
H A DMachOObject.h59 Section(StringRef SegName, StringRef SectName);
61 Section(StringRef SegName, StringRef SectName, StringRef Content);
357 /// to the newly created load command. The caller should verify that SegName
358 /// is not too long (SegName.size() should be less than or equal to 16).
359 LoadCommand &addSegment(StringRef SegName, uint64_t SegVMSize);
H A DMachOReader.cpp33 StringRef SegName(Sec.segname, strnlen(Sec.segname, sizeof(Sec.segname))); in constructSectionCommon()
35 Section S(SegName, SectName); in constructSectionCommon()
32 StringRef SegName(Sec.segname, strnlen(Sec.segname, sizeof(Sec.segname))); constructSectionCommon() local
/freebsd/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.h65 // to be null-terminated, hence the extra bytes on SegName and SectName.
74 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()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DDebuggerSupportPlugin.cpp
H A DObjectFileInterface.cpp87 auto SegName = Obj.getSectionFinalSegmentName(Sec.getRawDataRefImpl()); in getMachOObjectFileSymbolInfo() local
89 if (isMachOInitializerSection(SegName, SecName)) { in getMachOObjectFileSymbolInfo()
/freebsd/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));
/freebsd/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()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/
H A DObjectFormats.h71 bool isMachOInitializerSection(StringRef SegName, StringRef SecName);
/freebsd/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 …]
/freebsd/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()