| /freebsd/contrib/llvm-project/llvm/lib/ObjCopy/MachO/ |
| H A D | MachOObject.cpp | 17 Section::Section(StringRef SegName, StringRef SectName) in Section() argument 18 : Segname(SegName), Sectname(SectName), in Section() 19 CanonicalName((Twine(SegName) + Twine(',') + SectName).str()) {} in Section() 21 Section::Section(StringRef SegName, StringRef SectName, StringRef Content) in Section() argument 22 : Segname(SegName), Sectname(SectName), in Section() 23 CanonicalName((Twine(SegName) + Twine(',') + SectName).str()), in Section() 185 StringRef SegName, uint64_t SegVMAddr, uint64_t SegVMSize) { in constructSegment() argument 186 assert(SegName.size() <= sizeof(Seg.segname) && "too long segment name"); in constructSegment() 189 strncpy(Seg.segname, SegName.data(), SegName.size()); in constructSegment() 198 LoadCommand &Object::addSegment(StringRef SegName, uint64_t SegVMSize) { in addSegment() argument [all …]
|
| H A D | MachOObjcopy.cpp | 340 std::optional<StringRef> SegName = LC.getSegmentName(); in addSection() local 341 if (SegName && SegName == TargetSegName) { in addSection() 361 StringRef SegName; in findSection() local 362 std::tie(SegName, SecName) = SecName.split(","); in findSection() 374 if (Sec->Segname == SegName && Sec->Sectname == SecName) in findSection() 379 SecName.str().c_str(), SegName.str().c_str()); in findSection() 382 llvm::find_if(O.LoadCommands, [SegName](const LoadCommand &LC) { in findSection() 383 return LC.getSegmentName() == SegName; in findSection() 388 SegName.str().c_str()); in findSection() 398 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); 360 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()
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | DefineExternalSectionStartAndEndSymbols.h | 135 auto [SegName, SecName] = in identifyMachOSectionStartAndEndSymbols() 137 std::string SectionName = (SegName + "," + SecName).str(); in identifyMachOSectionStartAndEndSymbols() 141 auto [SegName, SecName] = in identifyMachOSectionStartAndEndSymbols() 143 std::string SectionName = (SegName + "," + SecName).str(); in identifyMachOSectionStartAndEndSymbols()
|
| H A D | MachOLinkGraphBuilder.cpp | 93 strcmp(NSec.SegName, "__DWARF") == 0); in isDebugSection() 132 memcpy(&NSec.SegName, Sec64.segname, 16); in createNormalizedSections() 133 NSec.SegName[16] = '\0'; in createNormalizedSections() 145 memcpy(&NSec.SegName, Sec32.segname, 16); in createNormalizedSections() 146 NSec.SegName[16] = '\0'; in createNormalizedSections() 156 dbgs() << " " << NSec.SegName << "," << NSec.SectName << ": " in createNormalizedSections() 182 G->allocateContent(StringRef(NSec.SegName) + "," + NSec.SectName); in createNormalizedSections() 217 formatv("\"{0}/{1}\" [ {2:x16} -- {3:x16} ] ", Cur.SegName, in createNormalizedSections() 219 "overlaps section \"" + Next.SegName + "/" + Next.SectName + "\"" + in createNormalizedSections() 220 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 | 256 << NSec->SegName << "/" << NSec->SectName in addRelocations()
|
| H A D | MachO_arm64.cpp | 281 << NSec->SegName << "/" << NSec->SectName in addRelocations()
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
| H A D | DebuggerSupportPlugin.cpp | |
| H A D | MachO.cpp | 261 auto SegName = in operator ()() local 267 (SegName == "__TEXT" && (*SecName).starts_with("__swift") && in operator ()()
|
| H A D | ObjectFileInterface.cpp | 85 auto SegName = Obj.getSectionFinalSegmentName(Sec.getRawDataRefImpl()); in getMachOObjectFileSymbolInfo() local 87 if (isMachOInitializerSection(SegName, SecName)) { in getMachOObjectFileSymbolInfo()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/ |
| H A D | MachOBuilder.h | 231 Section(MachOBuilder &Builder, StringRef SecName, StringRef SegName) 235 assert(SegName.size() <= 16 && "SegName too long"); 237 memcpy(this->segname, SegName.data(), SegName.size()); 267 Segment(MachOBuilder &Builder, StringRef SegName) 269 assert(SegName.size() <= 16 && "SegName too long"); 270 memcpy(this->segname, SegName.data(), SegName.size()); 276 Section &addSection(StringRef SecName, StringRef SegName) { 277 Sections.push_back(std::make_unique<Section>(Builder, SecName, SegName)); 313 Segment &addSegment(StringRef SegName) { 314 Segments.push_back(Segment(*this, SegName));
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/Shared/ |
| H A D | MachOObjectFormat.cpp | 65 bool isMachOInitializerSection(StringRef SegName, StringRef SecName) { in isMachOInitializerSection() argument 70 if (InitSection.starts_with(SegName) && InitSection.substr(7) == SecName) in isMachOInitializerSection()
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/Debugging/ |
| H A D | DebuggerSupportPlugin.cpp | 138 auto [SegName, SecName] = DSec.GraphSec->getName().split(','); in startSynthesis() 139 DSec.BuilderSec = &Seg->addSection(SecName, SegName); in startSynthesis() 207 auto [SegName, SecName] = NDSP.GraphSec->getName().split(','); in startSynthesis() 208 NDSP.BuilderSec = &Seg->addSection(SecName, SegName); in startSynthesis()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/ |
| H A D | MachOObjectFormat.h | 61 LLVM_ABI bool isMachOInitializerSection(StringRef SegName, StringRef SecName);
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/ |
| H A D | MachODump.cpp | 306 StringRef SegName = SLC.segname; in getSectionsAndSymbols() local 307 if (!BaseSegmentAddressSet && SegName != "__PAGEZERO") { in getSectionsAndSymbols() 313 StringRef SegName = SLC.segname; in getSectionsAndSymbols() local 314 if (!BaseSegmentAddressSet && SegName != "__PAGEZERO") { in getSectionsAndSymbols() 941 StringRef SegName = O->getSectionFinalSegmentName(DRI); in PrintRelocationEntries() local 943 outs() << "(" << SegName << "," << *NameOrErr << ")\n"; in PrintRelocationEntries() 997 const StringRef SegName = O->getSectionFinalSegmentName(DRI); in PrintRelocations() local 999 outs() << "Relocation information (" << SegName << "," << *NameOrErr in PrintRelocations() 1002 outs() << "Relocation information (" << SegName << ",?) " in PrintRelocations() 1017 const StringRef SegName = O->getSectionFinalSegmentName(DRI); in PrintRelocations() local [all …]
|
| /freebsd/contrib/llvm-project/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() 932 W.printString("Name", MOSegment.SegName); in printMachOSegment()
|