aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2019-11-04 17:40:30 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2019-11-04 17:40:30 -0800
commitf4f5892d577b1c746b037fe79ba78eca949eb5a8 (patch)
treea24dd800215301bdcfa79f6d997471f98ccc547e
parentc2f8abf013b22c335f44241a6a552a7767e73419 (diff)
downloadldid-f4f5892d577b1c746b037fe79ba78eca949eb5a8.tar.gz
ldid-f4f5892d577b1c746b037fe79ba78eca949eb5a8.tar.zst
ldid-f4f5892d577b1c746b037fe79ba78eca949eb5a8.zip
Support signing dyld (sbingner tested this patch).
-rw-r--r--ldid.cpp2
1 files changed, 2 insertions, 0 deletions
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
);
}