mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
The RTLD_GLOBAL flag allows symbols to be globally accessible, which makes
resolution of symbols in the .so possible (currently assists debugging with bugpoint). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7366 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -18,7 +18,7 @@
|
||||
namespace {
|
||||
struct PluginLoader {
|
||||
void operator=(const std::string &Filename) {
|
||||
if (dlopen(Filename.c_str(), RTLD_NOW) == 0)
|
||||
if (dlopen(Filename.c_str(), RTLD_NOW|RTLD_GLOBAL) == 0)
|
||||
std::cerr << "Error opening '" << Filename << "': " << dlerror()
|
||||
<< "\n -load request ignored.\n";
|
||||
}
|
||||
|
Reference in New Issue
Block a user