| /llvm-project-15.0.7/llvm/lib/ObjCopy/MachO/ |
| H A D | MachOObject.cpp | 159 StringRef SegName, uint64_t SegVMAddr, uint64_t SegVMSize) { in constructSegment() argument 160 assert(SegName.size() <= sizeof(Seg.segname) && "too long segment name"); in constructSegment() 163 strncpy(Seg.segname, SegName.data(), SegName.size()); in constructSegment() 172 LoadCommand &Object::addSegment(StringRef SegName, uint64_t SegVMSize) { in addSegment() argument 177 MachO::LC_SEGMENT_64, SegName, SegVMAddr, SegVMSize); in addSegment() 180 MachO::LC_SEGMENT, SegName, SegVMAddr, SegVMSize); in addSegment() 187 static StringRef extractSegmentName(const char *SegName) { in extractSegmentName() argument 188 return StringRef(SegName, in extractSegmentName() 189 strnlen(SegName, sizeof(MachO::segment_command::segname))); in extractSegmentName()
|
| H A D | MachOObject.h | 60 Section(StringRef SegName, StringRef SectName) in Section() 61 : Segname(std::string(SegName)), Sectname(std::string(SectName)), in Section() 62 CanonicalName((Twine(SegName) + Twine(',') + SectName).str()) {} in Section() 64 Section(StringRef SegName, StringRef SectName, StringRef Content) in Section() 65 : Segname(std::string(SegName)), Sectname(std::string(SectName)), in Section() 66 CanonicalName((Twine(SegName) + Twine(',') + SectName).str()), in Section() 360 LoadCommand &addSegment(StringRef SegName, uint64_t SegVMSize);
|
| H A D | MachOObjcopy.cpp | 310 Optional<StringRef> SegName = LC.getSegmentName(); in addSection() local 311 if (SegName && SegName == TargetSegName) { in addSection() 331 StringRef SegName; in findSection() local 332 std::tie(SegName, SecName) = SecName.split(","); in findSection() 334 llvm::find_if(O.LoadCommands, [SegName](const LoadCommand &LC) { in findSection() 335 return LC.getSegmentName() == SegName; in findSection() 340 SegName.str().c_str()); in findSection() 350 assert(FoundSec->get()->CanonicalName == (SegName + "," + SecName).str()); in findSection()
|
| H A D | MachOReader.cpp | 32 StringRef SegName(Sec.segname, strnlen(Sec.segname, sizeof(Sec.segname))); in constructSectionCommon() local 34 Section S(SegName, SectName); in constructSectionCommon()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/ |
| H A D | DebuggerSupportPlugin.cpp | 130 StringRef SegName; in startSynthesis() member 270 memcpy(Sec.segname, SI.SegName.data(), SI.SegName.size()); in startSynthesis() 307 StringRef SegName, SecName; in completeSynthesisAndRegister() local 312 SegName = "__JITLINK_CUSTOM"; in completeSynthesisAndRegister() 316 SegName = Sec->getName().substr(0, SepPos); in completeSynthesisAndRegister() 322 SegName = "__JITLINK_CUSTOM"; in completeSynthesisAndRegister() 340 memcpy(SecCmd.segname, SegName.data(), SegName.size()); in completeSynthesisAndRegister()
|
| H A D | ObjectFileInterface.cpp | 84 auto SegName = Obj.getSectionFinalSegmentName(Sec.getRawDataRefImpl()); in getMachOObjectFileSymbolInfo() local 86 if (MachOPlatform::isInitializerSection(SegName, SecName)) { in getMachOObjectFileSymbolInfo()
|
| H A D | MachOPlatform.cpp | 315 bool MachOPlatform::isInitializerSection(StringRef SegName, in isInitializerSection() argument 318 if (Name.startswith(SegName) && Name.substr(7) == SectName) in isInitializerSection()
|
| /llvm-project-15.0.7/llvm/lib/MC/ |
| H A D | MCMachOStreamer.cpp | 142 StringRef SegName = MSec.getSegmentName(); in canGoAfterDWARF() local 145 if (SegName == "__LD" && SecName == "__compact_unwind") in canGoAfterDWARF() 148 if (SegName == "__IMPORT") { in canGoAfterDWARF() 156 if (SegName == "__TEXT" && SecName == "__eh_frame") in canGoAfterDWARF() 159 if (SegName == "__DATA" && (SecName == "__nl_symbol_ptr" || in canGoAfterDWARF() 162 if (SegName == "__LLVM" && SecName == "__cg_profile") in canGoAfterDWARF() 172 StringRef SegName = MSec.getSegmentName(); in changeSection() local 173 if (SegName == "__DWARF") in changeSection()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | MachOLinkGraphBuilder.cpp | 85 strcmp(NSec.SegName, "__DWARF") == 0); in isDebugSection() 134 memcpy(&NSec.SegName, Sec64.segname, 16); in createNormalizedSections() 135 NSec.SegName[16] = '\0'; in createNormalizedSections() 147 memcpy(&NSec.SegName, Sec32.segname, 16); in createNormalizedSections() 148 NSec.SegName[16] = '\0'; in createNormalizedSections() 158 dbgs() << " " << NSec.SegName << "," << NSec.SectName << ": " in createNormalizedSections() 184 G->allocateString(StringRef(NSec.SegName) + "," + NSec.SectName); in createNormalizedSections() 215 formatv("\"{0}/{1}\" [ {2:x16} -- {3:x16} ] ", Cur.SegName, in createNormalizedSections() 217 "overlaps section \"" + Next.SegName + "/" + Next.SectName + "\"" + in createNormalizedSections() 218 formatv("\"{0}/{1}\" [ {2:x16} -- {3:x16} ] ", Next.SegName, in createNormalizedSections() [all …]
|
| H A D | MachOLinkGraphBuilder.h | 73 char SegName[17]; variable
|
| H A D | MachO_x86_64.cpp | 230 << NSec->SegName << "/" << NSec->SectName in addRelocations()
|
| H A D | MachO_arm64.cpp | 239 << NSec->SegName << "/" << NSec->SectName in addRelocations()
|
| /llvm-project-15.0.7/llvm/tools/llvm-gsymutil/ |
| H A D | llvm-gsymutil.cpp | 215 StringRef SegName = SLC.segname; in getImageBaseAddress() local 216 if (SegName == "__TEXT") in getImageBaseAddress() 220 StringRef SegName = SLC.segname; in getImageBaseAddress() local 221 if (SegName == "__TEXT") in getImageBaseAddress()
|
| /llvm-project-15.0.7/llvm/tools/llvm-objdump/ |
| H A D | MachODump.cpp | 323 StringRef SegName = SLC.segname; in getSectionsAndSymbols() local 324 if (!BaseSegmentAddressSet && SegName != "__PAGEZERO") { in getSectionsAndSymbols() 330 StringRef SegName = SLC.segname; in getSectionsAndSymbols() local 331 if (!BaseSegmentAddressSet && SegName != "__PAGEZERO") { in getSectionsAndSymbols() 1758 if ((DumpSegName.empty() || SegName == DumpSegName) && in DumpSectionContents() 1859 StringRef SegName = O->getSectionFinalSegmentName(Ref); in DumpInfoPlistSectionContents() local 3311 if (SegName != "__OBJC" && SectName != "__cstring") in get_pointer_64() 4112 if (SegName == segname && SectName == sectname) in get_section() 4133 StringRef SegName = O->getSectionFinalSegmentName(Ref); in walk_pointer_list_64() local 4182 StringRef SegName = O->getSectionFinalSegmentName(Ref); in walk_pointer_list_32() local [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/Orc/ |
| H A D | MachOPlatform.h | 107 static bool isInitializerSection(StringRef SegName, StringRef SectName);
|
| /llvm-project-15.0.7/llvm/tools/llvm-readobj/ |
| H A D | MachODumper.cpp | 309 std::string SegName; member 377 Segment.SegName = SC.segname; in getSegment() 391 Segment.SegName = SC.segname; in getSegment() 932 W.printString("Name", MOSegment.SegName); in printMachOSegment()
|