From f6fda206dee0287d2758c9df887002f22da77b27 Mon Sep 17 00:00:00 2001
From: Dmitry Gerasimov <dmitriy.gerasimov@demlabs.net>
Date: Tue, 23 Aug 2022 15:11:18 +0700
Subject: [PATCH] [*] Global namespace for dyload files

---
 plugin/src/dap_plugin_binary.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/src/dap_plugin_binary.c b/plugin/src/dap_plugin_binary.c
index 76c3e9fd3..8c3661a56 100644
--- a/plugin/src/dap_plugin_binary.c
+++ b/plugin/src/dap_plugin_binary.c
@@ -91,7 +91,7 @@ static int s_type_callback_load(dap_plugin_manifest_t * a_manifest, void ** a_pv
 #elif defined (DAP_OS_LINUX)
     char * l_path = dap_strdup_printf("%s/lib%s.linux.common.%s.so",a_manifest->path,a_manifest->name,dap_get_arch());
 #endif
-    l_pvt_data->handle = dlopen(l_path, RTLD_NOW); // Try with specified architecture first
+    l_pvt_data->handle = dlopen(l_path, RTLD_NOW | RTLD_GLOBAL); // Try with specified architecture first
     if(l_pvt_data->handle){
         l_pvt_data->callback_init = dlsym(l_pvt_data->handle, "plugin_init");
         l_pvt_data->callback_deinit = dlsym(l_pvt_data->handle, "plugin_deinit");
-- 
GitLab