Loading...
common/CachePatching.cpp dyld-1066.8 dyld-1165.3
--- dyld/dyld-1066.8/common/CachePatching.cpp
+++ dyld/dyld-1165.3/common/CachePatching.cpp
@@ -23,7 +23,7 @@
  */
 
 #include "CachePatching.h"
-#include "Error.h"
+#include "../cache_builder/Error.h"
 #include "Types.h"
 
 #if BUILDING_CACHE_BUILDER || BUILDING_CACHE_BUILDER_UNIT_TESTS
@@ -1052,6 +1052,7 @@
                 for (const dyld_cache_patchable_location& use : uses) {
                     dyld_cache_patchable_location_v4_got loc;
                     loc.cacheOffsetOfUse            = (use.cacheVMAddr - cacheBaseAddress).rawValue();
+                    loc.unusedPadding               = 0;
                     if ( use.authenticated ) {
                         loc.auth.high7                = use.high7;
                         loc.auth.isWeakImport         = use.isWeakImport;