Lines Matching defs:segment
1014 // We need to keep the __LINKEDIT segment private to this object file only
1056 GetModule()->ReportError("is a corrupt mach-o file: load command %u %s has a fileoff + filesize (0x%" PRIx64 ") that extends beyond the end of the file (0x%" PRIx64 "), the segment will be truncated",
1075 // Use a segment ID of the segment index shifted left by 8 so they
1082 ++segID << 8, // Section ID is the 1 based segment index shifted right by 8 bits as not to collide with any of the 256 section IDs that are possible
1134 // We have a segment with no name so we need to conjure up
1144 Section *segment = segment_sp.get();
1148 const lldb::addr_t curr_seg_byte_size = segment->GetByteSize();
1149 const lldb::addr_t curr_seg_min_addr = segment->GetFileAddress();
1156 segment->SetByteSize (new_seg_byte_size);
1160 // We need to change the base address of the segment and
1163 segment->Slide(slide_amount, false);
1164 segment->GetChildren().Slide(-slide_amount, false);
1165 segment->SetByteSize (curr_seg_max_addr - sect64_min_addr);
1171 const lldb::addr_t segment_min_file_offset = segment->GetFileOffset();
1172 const lldb::addr_t segment_max_file_offset = segment_min_file_offset + segment->GetFileSize();
1178 segment->SetFileOffset (new_file_offset);
1179 segment->SetFileSize (new_file_size);
1184 // Create a fake section for the section's named segment
1188 ++segID << 8, // Section ID is the 1 based segment index shifted right by 8 bits as not to collide with any of the 256 section IDs that are possible
1328 // Set the section to be encrypted to match the segment