]> git.saurik.com Git - ldid.git/commitdiff
Align size of a final embedded Mach-O to 16 bytes. v1.2.0
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 27 Jun 2015 04:32:50 +0000 (21:32 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 27 Jun 2015 04:32:50 +0000 (21:32 -0700)
ldid.cpp

index 8aa0b4eae677851e8146a2640a9987c5cf21f882..1795d344bc635f7a5f354e78733922dd7bce2829 100644 (file)
--- a/ldid.cpp
+++ b/ldid.cpp
@@ -1009,6 +1009,7 @@ int main(int argc, const char *argv[]) {
                     offset = Align(offset, 4096);
                     allocations.push_back(CodesignAllocation(mach_header, offset, size, alloc));
                     offset += size + alloc;
+                    offset = Align(offset, 16);
                 }
             }