Home | History | Annotate | Download | only in dsymutil

Lines Matching refs:Segment

128     MachO::segment_command_64 Segment;
130 Segment = adaptFrom32bits(Obj.getSegmentLoadCommand(LCI));
132 Segment = Obj.getSegment64LoadCommand(LCI);
136 Handler(Segment);
217 // Transfer \a Segment from \a Obj to the output file. This calls into \a Writer
221 // segment of \a DwarfSegmentSize size. \a EndAddress is updated to point at the
222 // highest segment address.
223 // When the __LINKEDIT segment is transfered, its offset and size are set resp.
227 const object::MachOObjectFile::LoadCommandInfo &LCI, SegmentTy Segment,
231 if (StringRef("__DWARF") == Segment.segname)
234 Segment.fileoff = Segment.filesize = 0;
236 if (StringRef("__LINKEDIT") == Segment.segname) {
237 Segment.fileoff = LinkeditOffset;
238 Segment.filesize = LinkeditSize;
241 // Check if the end address of the last segment and our current
243 // segment.
246 if (GapForDwarf == UINT64_MAX && Segment.vmaddr > EndAddress &&
247 Segment.vmaddr - EndAddress >= DwarfSegmentSize)
252 std::max<uint64_t>(PrevEndAddress, Segment.vmaddr + Segment.vmsize);
253 unsigned nsects = Segment.nsects;
255 MachO::swapStruct(Segment);
257 StringRef(reinterpret_cast<char *>(&Segment), sizeof(Segment)));
259 auto Sect = getSection(Obj, Segment, LCI, i);
267 // Write the __DWARF segment load command to the output file.
302 iterateOnSegments(Obj, [&](const MachO::segment_command_64 &Segment) {
303 if (StringRef("__LINKEDIT") == Segment.segname)
378 // We will copy every segment that isn't __DWARF.
379 iterateOnSegments(InputBinary, [&](const MachO::segment_command_64 &Segment) {
380 if (StringRef("__DWARF") == Segment.segname)
384 LoadCommandSize += segmentLoadCommandSize(Is64Bit, Segment.nsects);
387 // We will add our own brand new __DWARF segment if we have debug
467 // There is no room for the __DWARF segment at the end of the
471 warn("not enough VM space for the __DWARF segment.",
475 // Write the load command for the __DWARF segment.
503 // Pad till the Dwarf segment start.