From f4f5892d577b1c746b037fe79ba78eca949eb5a8 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 4 Nov 2019 17:40:30 -0800 Subject: Support signing dyld (sbingner tested this patch). --- ldid.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ldid.cpp') 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 ); } -- cgit v1.2.3-56-ge451