diff --git a/linker/linker.cpp b/linker/linker.cpp index a21262417..8aadd14bc 100644 --- a/linker/linker.cpp +++ b/linker/linker.cpp @@ -3506,6 +3506,9 @@ std::vector init_default_namespaces(const char* executable g_default_namespace.set_permitted_paths(default_ns_config->permitted_paths()); namespaces[default_ns_config->name()] = &g_default_namespace; + if (default_ns_config->visible()) { + g_exported_namespaces[default_ns_config->name()] = &g_default_namespace; + } // 2. Initialize other namespaces