diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2009-04-21 07:47:25 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2009-04-21 07:47:25 +0000 |
commit | 82813bde024b6c73f349faf81366ea6150127e61 (patch) | |
tree | ede822685e233df9207f33f9622916e1ca8ee159 | |
parent | 6e83315beacaa59f5443b3f21ff1dcf589a42d77 (diff) | |
download | ldid-82813bde024b6c73f349faf81366ea6150127e61.tar.gz ldid-82813bde024b6c73f349faf81366ea6150127e61.tar.zst ldid-82813bde024b6c73f349faf81366ea6150127e61.zip |
Add MH_DYLDLINK before attempting codesign_allocate.
-rw-r--r-- | ldid.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) { |