 CONSTANT: MH_PIE                     HEX: 200000
 
 STRUCT: load_command
-    { cmd     uint32_t }
-    { cmdsize uint32_t } ;
+    { cmd     uint }
+    { cmdsize uint } ;
 
 CONSTANT: LC_REQ_DYLD HEX: 80000000
 

STRUCT: section
    { sectname        char[16] }
    { segname         char[16] }
    { addr            uint32_t }
    { size            uint32_t }
    { offset          uint32_t }
    { align           uint32_t }
    { reloff          uint32_t }
    { nreloc          uint32_t }
    { flags           uint32_t }
    { reserved1       uint32_t }
    { reserved2       uint32_t } ;

STRUCT: section_64
    { sectname        char[16] }
    { segname         char[16] }
    { addr            uint64_t }
    { size            uint64_t }
    { offset          uint32_t }
    { align           uint32_t }
    { reloff          uint32_t }
    { nreloc          uint32_t }
    { flags           uint32_t }
    { reserved1       uint32_t }
    { reserved2       uint32_t }
    { reserved3       uint32_t } ;

CONSTANT: SECTION_TYPE         HEX: 000000ff
CONSTANT: SECTION_ATTRIBUTES   HEX: ffffff00

CONSTANT: LC_DYLD_INFO_ONLY     HEX: 80000022

UNION-STRUCT: lc_str
    { offset    uint     }
    { ptr       char*    } ;

STRUCT: segment_command
    { cmd            uint      }
    { cmdsize        uint      }
    { segname        char[16]  }
    { vmaddr         uint      }
    { vmsize         uint      }
    { fileoff        uint      }
    { filesize       uint      }
    { maxprot        vm_prot_t }
    { initprot       vm_prot_t }
    { nsects         uint      }
    { flags          uint      } ;

STRUCT: segment_command_64
    { cmd            uint       }
    { cmdsize        uint       }
    { segname        char[16]   }
    { vmaddr         ulonglong  }
    { vmsize         ulonglong  }
    { fileoff        ulonglong  }
    { filesize       ulonglong  }
    { maxprot        vm_prot_t  }
    { initprot       vm_prot_t  }
    { nsects         uint       }
    { flags          uint       } ;
    
CONSTANT: SG_HIGHVM               HEX: 1
CONSTANT: SG_FVMLIB               HEX: 2
CONSTANT: SG_NORELOC              HEX: 4
