Loading...
dyld3/Loading.cpp dyld-551.4 dyld-519.2.1
--- dyld/dyld-551.4/dyld3/Loading.cpp
+++ dyld/dyld-519.2.1/dyld3/Loading.cpp
@@ -91,20 +91,16 @@
     return sandboxBlocked(path, "file-read-metadata");
 }
 
-#if TARGET_OS_WATCH || TARGET_OS_BRIDGE
+#if TARGET_OS_WATCH
 static uint64_t pageAlign(uint64_t value)
 {
-  #if __arm64__
-    return (value + 0x3FFF) & (-0x4000);
-  #else
-	return (value + 0xFFF) & (-0x1000);
-  #endif
+	return (value + 4095) & (-4096);
 }
 #endif
 
 static void updateSliceOffset(uint64_t& sliceOffset, uint64_t codeSignEndOffset, size_t fileLen)
 {
-#if TARGET_OS_WATCH || TARGET_OS_BRIDGE
+#if TARGET_OS_WATCH
     if ( sliceOffset != 0 ) {
         if ( pageAlign(codeSignEndOffset) == pageAlign(fileLen) ) {
             // cache builder saw fat file, but file is now thin