From 69598bf4de54956512b0cfa64d9451779a01d30f Mon Sep 17 00:00:00 2001 From: kat Date: Mon, 4 Nov 2024 10:20:37 -0500 Subject: [SharedCache] Add load option to disable automatic loading of libsystem_c --- view/sharedcache/core/DSCView.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'view/sharedcache/core/DSCView.cpp') diff --git a/view/sharedcache/core/DSCView.cpp b/view/sharedcache/core/DSCView.cpp index 80456fc7..3eb40b7e 100644 --- a/view/sharedcache/core/DSCView.cpp +++ b/view/sharedcache/core/DSCView.cpp @@ -814,6 +814,14 @@ Ref DSCViewType::GetLoadSettingsForData(BinaryView* data) "description" : "Processes CoreFoundation strings, applying string values from encoded metadata" })"); + settings->RegisterSetting("loader.dsc.autoLoadLibSystem", + R"({ + "title" : "Auto-Load libSystem", + "type" : "boolean", + "default" : true, + "description" : "Whether to automatically load libsystem_c.dylib. This image contains frequently used noreturn symbols, and not loading it will result in frequently incorrect control flows." + })"); + settings->RegisterSetting("loader.dsc.processObjC", R"({ "title" : "Process Objective-C Metadata", -- cgit v1.3.1