| /openbsd-src/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() 171 StringRef SegName, uint64_t SegVMAddr, uint64_t SegVMSize) { in constructSegment() argument 172 assert(SegName.size() <= sizeof(Seg.segname) && "too long segment name"); in constructSegment() 175 strncpy(Seg.segname, SegName.data(), SegName.size()); in constructSegment() 184 LoadCommand &Object::addSegment(StringRef SegName, uint64_t SegVMSize) { in addSegment() 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-src/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-src/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-src/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-src/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-src/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() 971 StringRef SegName = O->getSectionFinalSegmentName(DRI); in PrintRelocationEntries() local 973 outs() << "(" << SegName << "," << *NameOrErr << ")\n"; in PrintRelocationEntries() 1027 const StringRef SegName = O->getSectionFinalSegmentName(DRI); in PrintRelocations() local 1029 outs() << "Relocation information (" << SegName << "," << *NameOrErr in PrintRelocations() 1032 outs() << "Relocation information (" << SegName << ",?) " in PrintRelocations() 1047 const StringRef SegName = O->getSectionFinalSegmentName(DRI); in PrintRelocations() local [all …]
|
| /openbsd-src/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-src/gnu/llvm/llvm/include/llvm/ExecutionEngine/Orc/ |
| H A D | MachOPlatform.h | 107 static bool isInitializerSection(StringRef SegName, StringRef SectName);
|