| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-objcopy/MachO/ |
| H A D | Object.cpp | 139 StringRef SegName, uint64_t SegVMAddr, uint64_t SegVMSize) { in constructSegment() argument 140 assert(SegName.size() <= sizeof(Seg.segname) && "too long segment name"); in constructSegment() 143 strncpy(Seg.segname, SegName.data(), SegName.size()); in constructSegment() 152 LoadCommand &Object::addSegment(StringRef SegName, uint64_t SegVMSize) { in addSegment() argument 157 MachO::LC_SEGMENT_64, SegName, SegVMAddr, SegVMSize); in addSegment() 160 MachO::LC_SEGMENT, SegName, SegVMAddr, SegVMSize); in addSegment() 167 static StringRef extractSegmentName(const char *SegName) { in extractSegmentName() argument 168 return StringRef(SegName, in extractSegmentName() 169 strnlen(SegName, sizeof(MachO::segment_command::segname))); in extractSegmentName()
|
| H A D | Object.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() 352 LoadCommand &addSegment(StringRef SegName, uint64_t SegVMSize);
|
| H A D | MachOObjcopy.cpp | 294 Optional<StringRef> SegName = LC.getSegmentName(); in addSection() local 295 if (SegName && SegName == TargetSegName) { in addSection()
|
| 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()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | MachOLinkGraphBuilder.cpp | 85 strcmp(NSec.SegName, "__DWARF") == 0); in isDebugSection() 136 memcpy(&NSec.SegName, Sec64.segname, 16); in createNormalizedSections() 137 NSec.SegName[16] = '\0'; in createNormalizedSections() 149 memcpy(&NSec.SegName, Sec32.segname, 16); in createNormalizedSections() 150 NSec.SegName[16] = '\0'; in createNormalizedSections() 160 dbgs() << " " << NSec.SegName << "," << NSec.SectName << ": " in createNormalizedSections() 189 G->allocateString(StringRef(NSec.SegName) + "," + NSec.SectName); in createNormalizedSections() 195 dbgs() << " " << NSec.SegName << "," << NSec.SectName in createNormalizedSections() 226 formatv("\"{0}/{1}\" [ {2:x16} -- {3:x16} ] ", Cur.SegName, in createNormalizedSections() 229 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 | 226 << NSec.SegName << "/" << NSec.SectName in addRelocations()
|
| H A D | MachO_arm64.cpp | 207 << NSec.SegName << "/" << NSec.SectName in addRelocations()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/MC/ |
| H A D | MCMachOStreamer.cpp | 125 StringRef SegName = MSec.getSegmentName(); in canGoAfterDWARF() local 128 if (SegName == "__LD" && SecName == "__compact_unwind") in canGoAfterDWARF() 131 if (SegName == "__IMPORT") { in canGoAfterDWARF() 139 if (SegName == "__TEXT" && SecName == "__eh_frame") in canGoAfterDWARF() 142 if (SegName == "__DATA" && (SecName == "__nl_symbol_ptr" || in canGoAfterDWARF() 154 StringRef SegName = MSec.getSegmentName(); in changeSection() local 155 if (SegName == "__DWARF") in changeSection()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
| H A D | Mangling.cpp | 157 auto SegName = in getObjectSymbolInfo() local 160 if (MachOPlatform::isInitializerSection(SegName, SecName)) { in getObjectSymbolInfo()
|
| H A D | MachOPlatform.cpp | 259 bool MachOPlatform::isInitializerSection(StringRef SegName, in isInitializerSection() argument 262 if (Name.startswith(SegName) && Name.substr(7) == SectName) in isInitializerSection()
|
| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-objdump/ |
| H A D | MachODump.cpp | 317 StringRef SegName = SLC.segname; in getSectionsAndSymbols() local 318 if (!BaseSegmentAddressSet && SegName != "__PAGEZERO") { in getSectionsAndSymbols() 324 StringRef SegName = SLC.segname; in getSectionsAndSymbols() local 325 if (!BaseSegmentAddressSet && SegName != "__PAGEZERO") { in getSectionsAndSymbols() 1738 if ((DumpSegName.empty() || SegName == DumpSegName) && in DumpSectionContents() 1839 StringRef SegName = O->getSectionFinalSegmentName(Ref); in DumpInfoPlistSectionContents() local 3288 if (SegName != "__OBJC" && SectName != "__cstring") in get_pointer_64() 4089 if (SegName == segname && SectName == sectname) in get_section() 4110 StringRef SegName = O->getSectionFinalSegmentName(Ref); in walk_pointer_list_64() local 4159 StringRef SegName = O->getSectionFinalSegmentName(Ref); in walk_pointer_list_32() local [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-readobj/ |
| H A D | MachODumper.cpp | 295 std::string SegName; member 363 Segment.SegName = SC.segname; in getSegment() 377 Segment.SegName = SC.segname; in getSegment() 846 W.printString("Name", MOSegment.SegName); in printMachOSegment()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/ |
| H A D | MachOPlatform.h | 124 static bool isInitializerSection(StringRef SegName, StringRef SectName);
|