The 64-bit segment load command indicates that a part of this file is to be mapped into a 64-bit task’s address space. If the 64-bit segment has sections then section_64 structures directly follow the 64-bit segment command and their size is reflected in cmdsize.
Fields
cmd: LC = .SEGMENT_64,
LC_SEGMENT_64
cmdsize: u32,
includes sizeof section_64 structs
segname: [16]u8,
segment name
vmaddr: u64 = 0,
memory address of this segment
vmsize: u64 = 0,
memory size of this segment
fileoff: u64 = 0,
file offset of this segment
filesize: u64 = 0,
amount to map from the file
nsects: u32 = 0,
number of sections in segment
flags: u32 = 0,