Lines Matching refs:Segment
128 MachO::segment_command_64 Segment; in iterateOnSegments() local
130 Segment = adaptFrom32bits(Obj.getSegmentLoadCommand(LCI)); in iterateOnSegments()
132 Segment = Obj.getSegment64LoadCommand(LCI); in iterateOnSegments()
136 Handler(Segment); in iterateOnSegments()
227 const object::MachOObjectFile::LoadCommandInfo &LCI, SegmentTy Segment, in transferSegmentAndSections() argument
231 if (StringRef("__DWARF") == Segment.segname) in transferSegmentAndSections()
234 Segment.fileoff = Segment.filesize = 0; in transferSegmentAndSections()
236 if (StringRef("__LINKEDIT") == Segment.segname) { in transferSegmentAndSections()
237 Segment.fileoff = LinkeditOffset; in transferSegmentAndSections()
238 Segment.filesize = LinkeditSize; in transferSegmentAndSections()
246 if (GapForDwarf == UINT64_MAX && Segment.vmaddr > EndAddress && in transferSegmentAndSections()
247 Segment.vmaddr - EndAddress >= DwarfSegmentSize) in transferSegmentAndSections()
252 std::max<uint64_t>(PrevEndAddress, Segment.vmaddr + Segment.vmsize); in transferSegmentAndSections()
253 unsigned nsects = Segment.nsects; in transferSegmentAndSections()
255 MachO::swapStruct(Segment); in transferSegmentAndSections()
257 StringRef(reinterpret_cast<char *>(&Segment), sizeof(Segment))); in transferSegmentAndSections()
259 auto Sect = getSection(Obj, Segment, LCI, i); in transferSegmentAndSections()
302 iterateOnSegments(Obj, [&](const MachO::segment_command_64 &Segment) { in hasLinkEditSegment() argument
303 if (StringRef("__LINKEDIT") == Segment.segname) in hasLinkEditSegment()
379 iterateOnSegments(InputBinary, [&](const MachO::segment_command_64 &Segment) { in generateDsymCompanion() argument
380 if (StringRef("__DWARF") == Segment.segname) in generateDsymCompanion()
384 LoadCommandSize += segmentLoadCommandSize(Is64Bit, Segment.nsects); in generateDsymCompanion()