summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2009-04-21 07:47:25 +0000
committerJay Freeman <saurik@saurik.com>2009-04-21 07:47:25 +0000
commitbdf043ea15e2885dbdf9ce79a86c2885603a1b4f (patch)
tree9b50e3426332a0e1027318b7da861466d0688e82 /util
parente37ba76c1a089f2ee7d35985e3cd9574d9215131 (diff)
Add MH_DYLDLINK before attempting codesign_allocate.
git-svn-id: http://svn.telesphoreo.org/trunk@594 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'util')
-rw-r--r--util/ldid.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/ldid.cpp b/util/ldid.cpp
index 02fbce5c9..334fd1f20 100644
--- a/util/ldid.cpp
+++ b/util/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) {