From: Jay Freeman (saurik) Date: Tue, 5 Nov 2019 01:40:30 +0000 (-0800) Subject: Support signing dyld (sbingner tested this patch). X-Git-Tag: v2.1.3~9 X-Git-Url: https://git.saurik.com/ldid.git/commitdiff_plain/f4f5892d577b1c746b037fe79ba78eca949eb5a8?ds=sidebyside Support signing dyld (sbingner tested this patch). --- diff --git a/ldid.cpp b/ldid.cpp index 79104ad..7154e10 100644 --- a/ldid.cpp +++ b/ldid.cpp @@ -245,6 +245,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 @@ -701,6 +702,7 @@ class MachHeader : _assert( Swap(mach_header_->filetype) == MH_EXECUTE || Swap(mach_header_->filetype) == MH_DYLIB || + Swap(mach_header_->filetype) == MH_DYLINKER || Swap(mach_header_->filetype) == MH_BUNDLE ); }