]> git.saurik.com Git - ldid.git/commitdiff
Don't include fields for later directory versions.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 16 Sep 2018 10:15:28 +0000 (03:15 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 16 Sep 2018 10:15:28 +0000 (03:15 -0700)
ldid.cpp

index 4d97bb8926b55fdf2af0d6fb76d51aeb7436ae8f..25f30278b8bb4d013730cc2f87ef6d8bc43552dd 100644 (file)
--- a/ldid.cpp
+++ b/ldid.cpp
@@ -859,8 +859,8 @@ struct CodeDirectory {
     uint32_t spare2;
     uint32_t scatterOffset;
     uint32_t teamIDOffset;
-    uint32_t spare3;
-    uint64_t codeLimit64;
+    //uint32_t spare3;
+    //uint64_t codeLimit64;
 } _packed;
 
 #ifndef LDID_NOFLAGT
@@ -1721,8 +1721,8 @@ Hash Sign(const void *idata, size_t isize, std::streambuf &output, const std::st
             directory.pageSize = PageShift_;
             directory.spare2 = Swap(uint32_t(0));
             directory.scatterOffset = Swap(uint32_t(0));
-            directory.spare3 = Swap(uint32_t(0));
-            directory.codeLimit64 = Swap(uint64_t(0));
+            //directory.spare3 = Swap(uint32_t(0));
+            //directory.codeLimit64 = Swap(uint64_t(0));
 
             uint32_t offset(sizeof(Blob) + sizeof(CodeDirectory));