Home
last modified time | relevance | path

Searched refs:SegName (Results 1 – 16 of 16) sorted by relevance

/external/llvm-project/llvm/tools/llvm-objcopy/MachO/
DObject.cpp139 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()
DObject.h60 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()
346 LoadCommand &addSegment(StringRef SegName, uint64_t SegVMSize);
DMachOObjcopy.cpp287 Optional<StringRef> SegName = LC.getSegmentName(); in addSection() local
288 if (SegName && SegName == TargetSegName) { in addSection()
DMachOReader.cpp32 StringRef SegName(Sec.segname, strnlen(Sec.segname, sizeof(Sec.segname))); in constructSectionCommon() local
34 Section S(SegName, SectName); in constructSectionCommon()
/external/llvm-project/llvm/lib/ExecutionEngine/JITLink/
DMachOLinkGraphBuilder.cpp82 strcmp(NSec.SegName, "__DWARF") == 0); in isDebugSection()
126 memcpy(&NSec.SegName, Sec64.segname, 16); in createNormalizedSections()
127 NSec.SegName[16] = '\0'; in createNormalizedSections()
139 memcpy(&NSec.SegName, Sec32.segname, 16); in createNormalizedSections()
140 NSec.SegName[16] = '\0'; in createNormalizedSections()
216 formatv("\"{0}/{1}\" [ {2:x16} -- {3:x16} ] ", Cur.SegName, in createNormalizedSections()
218 "overlaps section \"" + Next.SegName + "/" + Next.SectName + "\"" + in createNormalizedSections()
219 formatv("\"{0}/{1}\" [ {2:x16} -- {3:x16} ] ", Next.SegName, in createNormalizedSections()
297 dbgs() << " Skipping: Symbol is in section " << NSec->SegName << "/" in createNormalizedSymbols()
397 dbgs() << " " << NSec.SegName << "/" << NSec.SectName in graphifyRegularSymbols()
DMachOLinkGraphBuilder.h73 char SegName[17]; variable
DMachO_x86_64.cpp208 << NSec.SegName << "/" << NSec.SectName in addRelocations()
DMachO_arm64.cpp206 << NSec.SegName << "/" << NSec.SectName in addRelocations()
/external/llvm/lib/MC/
DMCMachOStreamer.cpp128 StringRef SegName = MSec.getSegmentName(); in canGoAfterDWARF() local
131 if (SegName == "__LD" && SecName == "__compact_unwind") in canGoAfterDWARF()
134 if (SegName == "__IMPORT") { in canGoAfterDWARF()
142 if (SegName == "__TEXT" && SecName == "__eh_frame") in canGoAfterDWARF()
145 if (SegName == "__DATA" && SecName == "__nl_symbol_ptr") in canGoAfterDWARF()
156 StringRef SegName = MSec.getSegmentName(); in ChangeSection() local
157 if (SegName == "__DWARF") in ChangeSection()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
DMCMachOStreamer.cpp125 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()
/external/llvm-project/llvm/lib/MC/
DMCMachOStreamer.cpp125 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()
/external/llvm-project/llvm/tools/llvm-gsymutil/
Dllvm-gsymutil.cpp235 StringRef SegName = SLC.segname; in getImageBaseAddress() local
236 if (SegName == "__TEXT") in getImageBaseAddress()
240 StringRef SegName = SLC.segname; in getImageBaseAddress() local
241 if (SegName == "__TEXT") in getImageBaseAddress()
/external/llvm-project/llvm/tools/llvm-objdump/
DMachODump.cpp379 StringRef SegName = SLC.segname; in getSectionsAndSymbols() local
380 if (!BaseSegmentAddressSet && SegName != "__PAGEZERO") { in getSectionsAndSymbols()
386 StringRef SegName = SLC.segname; in getSectionsAndSymbols() local
387 if (!BaseSegmentAddressSet && SegName != "__PAGEZERO") { in getSectionsAndSymbols()
1014 StringRef SegName = O->getSectionFinalSegmentName(DRI); in PrintRelocationEntries() local
1016 outs() << "(" << SegName << "," << *NameOrErr << ")\n"; in PrintRelocationEntries()
1070 const StringRef SegName = O->getSectionFinalSegmentName(DRI); in PrintRelocations() local
1072 outs() << "Relocation information (" << SegName << "," << *NameOrErr in PrintRelocations()
1075 outs() << "Relocation information (" << SegName << ",?) " in PrintRelocations()
1090 const StringRef SegName = O->getSectionFinalSegmentName(DRI); in PrintRelocations() local
[all …]
/external/llvm/tools/llvm-readobj/
DMachODumper.cpp271 std::string SegName; member
339 Segment.SegName = SC.segname; in getSegment()
353 Segment.SegName = SC.segname; in getSegment()
779 W.printString("Name", MOSegment.SegName); in printMachOSegment()
/external/llvm-project/llvm/tools/llvm-readobj/
DMachODumper.cpp292 std::string SegName; member
360 Segment.SegName = SC.segname; in getSegment()
374 Segment.SegName = SC.segname; in getSegment()
843 W.printString("Name", MOSegment.SegName); in printMachOSegment()
/external/llvm/tools/llvm-objdump/
DMachODump.cpp329 StringRef SegName = SLC.segname; in getSectionsAndSymbols() local
330 if (!BaseSegmentAddressSet && SegName != "__PAGEZERO") { in getSectionsAndSymbols()
1080 StringRef SegName = O->getSectionFinalSegmentName(Ref); in DumpSectionContents() local
1081 if ((DumpSegName.empty() || SegName == DumpSegName) && in DumpSectionContents()
1101 outs() << "Contents of (" << SegName << "," << SectName in DumpSectionContents()
1107 DisassembleMachO(Filename, O, SegName, SectName); in DumpSectionContents()
1110 if (SegName == "__TEXT" && SectName == "__info_plist") { in DumpSectionContents()
1114 if (SegName == "__OBJC" && SectName == "__protocol") { in DumpSectionContents()
1119 if (SegName == "__LLVM" && SectName == "__bundle") { in DumpSectionContents()
1176 StringRef SegName = O->getSectionFinalSegmentName(Ref); in DumpInfoPlistSectionContents() local
[all …]