I've added RTLD_GLOBAL to RTLD_LAZY as default flags in SVN.
Depending on the platform, leaving it out has different behaviors, so
at least now it'll be consistent.
On Mar 18, 2009, at 10:57 AM, Asaf Yaffe wrote:
thanks!
any change there'll be an API to control these flags?
what i need it RTLD_GLOBAL...
cheers, asaf :-)
On Wed, Mar 18, 2009 at 3:16 PM, Timothy Wall
<twal...@dev.java.net> wrote:
JNA uses dlopen(name, RTLD_LAZY)
On Mar 17, 2009, at 1:01 PM, Asaf Yaffe wrote:
hi,
i've been trying to apply JNA to one of our legacy .so's .
this main.so is loading, in turn, other.so and the later is using
symbols of the former.
the way to do that, in the calling c code, was to load main.so
globally (RTLD_GLOBAL), so the main's symbols are available to
other's code.
so, i've tries to load one.so through JNA. it complains that
dlopen() with other.so can't find one of main's symbol.
well, it makes sense, since main.so wans't loaded into the JVM
*globally*.
is there a way to control that? couldn't find a place to pass that
flag...
btw - does JNA uses RTLD_LAZY too?
thanks, asaf :-)