[llvm-commits] CVS: llvm/lib/Support/PluginLoader.cpp
Misha Brukman
brukman at cs.uiuc.edu
Mon Jul 28 14:21:01 PDT 2003
Changes in directory llvm/lib/Support:
PluginLoader.cpp updated: 1.3 -> 1.4
---
Log message:
The RTLD_GLOBAL flag allows symbols to be globally accessible, which makes
resolution of symbols in the .so possible (currently assists debugging with
bugpoint).
---
Diffs of the changes:
Index: llvm/lib/Support/PluginLoader.cpp
diff -u llvm/lib/Support/PluginLoader.cpp:1.3 llvm/lib/Support/PluginLoader.cpp:1.4
--- llvm/lib/Support/PluginLoader.cpp:1.3 Mon Jun 30 16:58:48 2003
+++ llvm/lib/Support/PluginLoader.cpp Mon Jul 28 14:19:58 2003
@@ -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";
}
More information about the llvm-commits
mailing list