From ee06ce1148e2ce485b32460b8afab450840c48fe Mon Sep 17 00:00:00 2001 From: "jreiser@BitWagon.com" Date: Sat, 10 Sep 2016 14:57:27 -0700 Subject: [PATCH] generic Mach_command --- src/p_mach.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/p_mach.h b/src/p_mach.h index 350c03c0..33f83271 100644 --- a/src/p_mach.h +++ b/src/p_mach.h @@ -47,6 +47,11 @@ __packed_struct(Mach_fat_arch) BE32 align; /* shift count; log base 2 */ __packed_struct_end() +typedef struct { + uint32_t cmd; + uint32_t cmdsize; + uint32_t data[2]; // because cmdsize >= 16 +} Mach_command; // generic prefix /************************************************************************* // Mach Mach Object executable; all structures are target-endian