/openbsd/gnu/llvm/llvm/lib/ObjCopy/MachO/ |
H A D | MachOObject.cpp | 16 Section::Section(StringRef SegName, StringRef SectName) in Section() argument 17 : Segname(SegName), Sectname(SectName), in Section() 18 CanonicalName((Twine(SegName) + Twine(',') + SectName).str()) {} in Section() 20 Section::Section(StringRef SegName, StringRef SectName, StringRef Content) in Section() argument 21 : Segname(SegName), Sectname(SectName), in Section() 22 CanonicalName((Twine(SegName) + Twine(',') + SectName).str()), in Section() 175 strncpy(Seg.segname, SegName.data(), SegName.size()); in constructSegment() 184 LoadCommand &Object::addSegment(StringRef SegName, uint64_t SegVMSize) { in addSegment() argument 192 MachO::LC_SEGMENT, SegName, SegVMAddr, SegVMSize); in addSegment() 199 static StringRef extractSegmentName(const char *SegName) { in extractSegmentName() argument [all …]
|
H A D | MachOObjcopy.cpp | 310 std::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 | MachOObject.h | 59 Section(StringRef SegName, StringRef SectName); 61 Section(StringRef SegName, StringRef SectName, StringRef Content); 359 LoadCommand &addSegment(StringRef SegName, uint64_t SegVMSize);
|
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()
|
/openbsd/gnu/llvm/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 | 86 auto SegName = Obj.getSectionFinalSegmentName(Sec.getRawDataRefImpl()); in getMachOObjectFileSymbolInfo() local 88 if (MachOPlatform::isInitializerSection(SegName, SecName)) { in getMachOObjectFileSymbolInfo()
|
H A D | MachOPlatform.cpp | 401 bool MachOPlatform::isInitializerSection(StringRef SegName, in isInitializerSection() argument 404 if (Name.startswith(SegName) && Name.substr(7) == SectName) in isInitializerSection()
|
/openbsd/gnu/llvm/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()
|
/openbsd/gnu/llvm/llvm/lib/ExecutionEngine/JITLink/ |
H A D | MachOLinkGraphBuilder.cpp | 89 strcmp(NSec.SegName, "__DWARF") == 0); in isDebugSection() 138 memcpy(&NSec.SegName, Sec64.segname, 16); in createNormalizedSections() 139 NSec.SegName[16] = '\0'; in createNormalizedSections() 151 memcpy(&NSec.SegName, Sec32.segname, 16); in createNormalizedSections() 152 NSec.SegName[16] = '\0'; in createNormalizedSections() 162 dbgs() << " " << NSec.SegName << "," << NSec.SectName << ": " in createNormalizedSections() 188 G->allocateString(StringRef(NSec.SegName) + "," + NSec.SectName); in createNormalizedSections() 219 formatv("\"{0}/{1}\" [ {2:x16} -- {3:x16} ] ", Cur.SegName, in createNormalizedSections() 221 "overlaps section \"" + Next.SegName + "/" + Next.SectName + "\"" + in createNormalizedSections() 222 formatv("\"{0}/{1}\" [ {2:x16} -- {3:x16} ] ", Next.SegName, in createNormalizedSections() [all …]
|
H A D | MachOLinkGraphBuilder.h | 74 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()
|
/openbsd/gnu/llvm/llvm/tools/llvm-gsymutil/ |
H A D | llvm-gsymutil.cpp | 216 StringRef SegName = SLC.segname; in getImageBaseAddress() local 217 if (SegName == "__TEXT") in getImageBaseAddress() 221 StringRef SegName = SLC.segname; in getImageBaseAddress() local 222 if (SegName == "__TEXT") in getImageBaseAddress()
|
/openbsd/gnu/llvm/llvm/tools/llvm-objdump/ |
H A D | MachODump.cpp | 336 StringRef SegName = SLC.segname; in getSectionsAndSymbols() local 337 if (!BaseSegmentAddressSet && SegName != "__PAGEZERO") { in getSectionsAndSymbols() 343 StringRef SegName = SLC.segname; in getSectionsAndSymbols() local 344 if (!BaseSegmentAddressSet && SegName != "__PAGEZERO") { in getSectionsAndSymbols() 1286 StringRef SegName) { in PrintChainedFixupsSegment() argument 2090 StringRef SegName = O->getSectionFinalSegmentName(Ref); in DumpInfoPlistSectionContents() local 3545 if (SegName != "__OBJC" && SectName != "__cstring") in get_pointer_64() 4346 if (SegName == segname && SectName == sectname) in get_section() 4367 StringRef SegName = O->getSectionFinalSegmentName(Ref); in walk_pointer_list_64() local 4416 StringRef SegName = O->getSectionFinalSegmentName(Ref); in walk_pointer_list_32() local [all …]
|
/openbsd/gnu/llvm/llvm/tools/llvm-readobj/ |
H A D | MachODumper.cpp | 308 std::string SegName; member 376 Segment.SegName = SC.segname; in getSegment() 390 Segment.SegName = SC.segname; in getSegment() 930 W.printString("Name", MOSegment.SegName); in printMachOSegment()
|
/openbsd/gnu/llvm/llvm/include/llvm/ExecutionEngine/Orc/ |
H A D | MachOPlatform.h | 107 static bool isInitializerSection(StringRef SegName, StringRef SectName);
|