diff --git a/ldid b/ldid index 74cbcb6..0be968f 100755 Binary files a/ldid and b/ldid differ diff --git a/ldid.cpp b/ldid.cpp index 7238767..3c604dc 100644 --- a/ldid.cpp +++ b/ldid.cpp @@ -68,6 +68,7 @@ struct mach_header { #define MH_OBJECT 0x1 #define MH_EXECUTE 0x2 #define MH_DYLIB 0x6 +#define MH_DYLINKER 0x7 #define MH_BUNDLE 0x8 #define MH_DYLIB_STUB 0x9 @@ -449,6 +450,7 @@ class MachHeader : load_command_ = (struct load_command *) post; _assert( + Swap(mach_header_->filetype) == MH_DYLINKER || Swap(mach_header_->filetype) == MH_EXECUTE || Swap(mach_header_->filetype) == MH_DYLIB || Swap(mach_header_->filetype) == MH_BUNDLE diff --git a/ldid2 b/ldid2 index cf8ecbd..04913bb 100755 Binary files a/ldid2 and b/ldid2 differ diff --git a/ldid2.cpp b/ldid2.cpp index 30badb0..706a2c4 100644 --- a/ldid2.cpp +++ b/ldid2.cpp @@ -68,6 +68,7 @@ struct mach_header { #define MH_OBJECT 0x1 #define MH_EXECUTE 0x2 #define MH_DYLIB 0x6 +#define MH_DYLINKER 0x7 #define MH_BUNDLE 0x8 #define MH_DYLIB_STUB 0x9 @@ -449,6 +450,7 @@ class MachHeader : load_command_ = (struct load_command *) post; _assert( + Swap(mach_header_->filetype) == MH_DYLINKER || Swap(mach_header_->filetype) == MH_EXECUTE || Swap(mach_header_->filetype) == MH_DYLIB || Swap(mach_header_->filetype) == MH_BUNDLE