LC_SEGMENT.
Includes sizeof section structs.
File offset of this segment.
Amount to map from the file.
Flags.
Initial VM protection.
Maximum VM protection.
Number of sections in segment.
Segment name.
Memory address of this segment.
Memory size of this segment.
The segment load command indicates that a part of this file is to be mapped into the task's address space. The size of this segment in memory, vmsize, maybe equal to or larger than the amount to map from this file, filesize. The file is mapped starting at fileoff to the beginning of the segment in memory, vmaddr. The rest of the memory of the segment, if any, is allocated zero fill on demand. The segment's maximum virtual memory protection and initial virtual memory protection are specified by the maxprot and initprot fields. If the segment has sections then the section structures directly follow the segment command and their size is reflected in cmdsize.