Lines Matching refs:Segment

144     MachO::segment_command_64 Segment;  in iterateOnSegments()  local
146 Segment = adaptFrom32bits(Obj.getSegmentLoadCommand(LCI)); in iterateOnSegments()
148 Segment = Obj.getSegment64LoadCommand(LCI); in iterateOnSegments()
152 Handler(Segment); in iterateOnSegments()
256 const object::MachOObjectFile::LoadCommandInfo &LCI, SegmentTy Segment, in transferSegmentAndSections() argument
261 if (StringRef("__DWARF") == Segment.segname) in transferSegmentAndSections()
264 if (StringRef("__TEXT") == Segment.segname && EHFrameSize > 0) { in transferSegmentAndSections()
265 Segment.fileoff = EHFrameOffset; in transferSegmentAndSections()
266 Segment.filesize = EHFrameSize; in transferSegmentAndSections()
267 } else if (StringRef("__LINKEDIT") == Segment.segname) { in transferSegmentAndSections()
268 Segment.fileoff = LinkeditOffset; in transferSegmentAndSections()
269 Segment.filesize = LinkeditSize; in transferSegmentAndSections()
271 Segment.vmsize = alignTo(LinkeditSize, 0x1000); in transferSegmentAndSections()
273 Segment.fileoff = Segment.filesize = 0; in transferSegmentAndSections()
281 if (GapForDwarf == UINT64_MAX && Segment.vmaddr > EndAddress && in transferSegmentAndSections()
282 Segment.vmaddr - EndAddress >= DwarfSegmentSize) in transferSegmentAndSections()
287 std::max<uint64_t>(PrevEndAddress, Segment.vmaddr + Segment.vmsize); in transferSegmentAndSections()
288 unsigned nsects = Segment.nsects; in transferSegmentAndSections()
290 MachO::swapStruct(Segment); in transferSegmentAndSections()
291 Writer.W.OS.write(reinterpret_cast<char *>(&Segment), sizeof(Segment)); in transferSegmentAndSections()
293 auto Sect = getSection(Obj, Segment, LCI, i); in transferSegmentAndSections()
461 iterateOnSegments(InputBinary, [&](const MachO::segment_command_64 &Segment) { in generateDsymCompanion() argument
462 if (StringRef("__DWARF") == Segment.segname) in generateDsymCompanion()
466 LoadCommandSize += segmentLoadCommandSize(Is64Bit, Segment.nsects); in generateDsymCompanion()