diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2003-07-28 19:19:58 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-07-28 19:19:58 +0000 |
commit | 3ce4ac62a08ed8a489074a8cc13a90a38db981eb (patch) | |
tree | 62ad91090f8e83165856d9b1fa97dcaea128af4a /lib/Support | |
parent | 90a24c71a2b848d5092a936ffb939b061d73f048 (diff) | |
download | external_llvm-3ce4ac62a08ed8a489074a8cc13a90a38db981eb.zip external_llvm-3ce4ac62a08ed8a489074a8cc13a90a38db981eb.tar.gz external_llvm-3ce4ac62a08ed8a489074a8cc13a90a38db981eb.tar.bz2 |
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
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/PluginLoader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/PluginLoader.cpp b/lib/Support/PluginLoader.cpp index b973b16..76c5e81 100644 --- a/lib/Support/PluginLoader.cpp +++ b/lib/Support/PluginLoader.cpp @@ -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"; } |