GNOME Bugzilla – Bug 71615
Option to turn off RTLD_GLOBAL
Last modified: 2011-02-18 16:13:45 UTC
dlopen(..., RTLD_GLOBAL) polutes the global namespace with symbols defined in this module further dlopen/dlsym involves resolving started from previously loaded modules. This way some symbols get resolved the wrong way The correct way (as expected by the user) is using RTLD_LOCAL. RTLD_LOCAL behaves the same way as LoadLibrary() under Windows.
Created attachment 6737 [details] [review] simple patch
Changing this is an API change, we could an extra option to load a module without RTLD_GLOBAL
*** Bug 76863 has been marked as a duplicate of this bug. ***
*** Bug 91767 has been marked as a duplicate of this bug. ***
Created attachment 10749 [details] [review] patch to add G_MODULE_BIND_LOCAL
Created attachment 10819 [details] [review] improvement on last patch, includes documentation, comments; implemented on all platforms
*** Bug 119657 has been marked as a duplicate of this bug. ***
thanks for the patch, applied as is.