mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-04 17:56:53 +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). llvm-svn: 7366
This commit is contained in:
parent
d36940e9ec
commit
bbfad09fa9
@ -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";
|
||||
}
|
||||
|
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user