diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2019-11-04 17:40:30 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2019-11-04 17:40:30 -0800 |
commit | f4f5892d577b1c746b037fe79ba78eca949eb5a8 (patch) | |
tree | a24dd800215301bdcfa79f6d997471f98ccc547e /ldid.cpp | |
parent | c2f8abf013b22c335f44241a6a552a7767e73419 (diff) | |
download | ldid-f4f5892d577b1c746b037fe79ba78eca949eb5a8.tar.gz ldid-f4f5892d577b1c746b037fe79ba78eca949eb5a8.tar.zst ldid-f4f5892d577b1c746b037fe79ba78eca949eb5a8.zip |
Support signing dyld (sbingner tested this patch).
Diffstat (limited to 'ldid.cpp')
-rw-r--r-- | ldid.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 ); } |