This is the mail archive of the
libc-alpha@cygnus.com
mailing list for the glibc project.
Re: [mcculley@cuspy.com] libc/977: dlopen tries to resolve symbols even when given RTLD_LAZY
- To: aj@arthur.rhein-neckar.de, libc-alpha@cygnus.com, mcculley@cuspy.com
- Subject: Re: [mcculley@cuspy.com] libc/977: dlopen tries to resolve symbols even when given RTLD_LAZY
- From: Geoff Keating <geoffk@ozemail.com.au>
- Date: Wed, 17 Feb 1999 20:13:33 +1100
- References: <m10CuBQ-000392C@ocean.lucon.org>
> > It seems that dlopen tries to resolve symbols in a .so even when
> > it is given RTLD_LAZY and there is no _init function to be run.
> > This makes it impossible to build dynamically loadable module
> > based applications that figure out the dependencies themselves.
> > This acts differently (IMHO correctly) on an SGI running IRIX.
You just need to intercept the ld.so error and deal with that.
This might be quite tricky because of the interface; feel free to
suggest a better one.
--
Geoffrey Keating <geoffk@ozemail.com.au>