File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,11 @@ Ref<Settings> KernelCacheViewType::GetLoadSettingsForData(BinaryView* data)
7474 "description" : "Add function starts sourced from the Function Starts tables to the core for analysis."
7575 })" );
7676
77+ // Place the synthetic sections well after the kernel cache to ensure they do
78+ // not collide with any images that are later loaded from the kernel cache.
79+ constexpr uint64_t syntheticSectionsOffset = 256 * 1024 * 1024 ;
80+ settings->UpdateProperty (" loader.syntheticSectionBase" , " default" , viewRef->GetStart () + syntheticSectionsOffset);
81+
7782 // Merge existing load settings if they exist. This allows for the selection of a specific object file from a Mach-O
7883 // Universal file. The 'Universal' BinaryViewType generates a schema with 'loader.universal.architectures'. This
7984 // schema contains an appropriate 'Mach-O' load schema for selecting a specific object file. The embedded schema
You can’t perform that action at this time.
0 commit comments