From 82813bde024b6c73f349faf81366ea6150127e61 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 21 Apr 2009 07:47:25 +0000 Subject: [PATCH] Add MH_DYLDLINK before attempting codesign_allocate. --- ldid.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ldid.cpp b/ldid.cpp index 02fbce5..334fd1f 100644 --- a/ldid.cpp +++ b/ldid.cpp @@ -78,6 +78,8 @@ struct mach_header { #define MH_MAGIC 0xfeedface #define MH_CIGAM 0xcefaedfe +#define MH_DYLDLINK 0x4 + #define MH_EXECUTE 0x2 #define MH_DYLIB 0x6 #define MH_BUNDLE 0x8 @@ -536,6 +538,8 @@ int main(int argc, const char *argv[]) { size_t size = _not(size_t); const char *arch; { Framework framework(path); + framework->flags |= MH_DYLDLINK; + _foreach (load_command, framework.GetLoadCommands()) { uint32_t cmd(framework.Swap((*load_command)->cmd)); if (cmd == LC_CODE_SIGNATURE) { -- 2.47.1