This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: dlopen/dlclose/dlsym
- To: egcs at cygnus dot com, rask at kampsax dot k-net dot dk
- Subject: Re: dlopen/dlclose/dlsym
- From: mrs at wrs dot com (Mike Stump)
- Date: Thu, 25 Jun 1998 18:53:25 -0700
> Date: 23 Jun 98 05:40:11 +0200
> From: "Rask Ingemann Lambertsen" <rask@kampsax.k-net.dk>
> Is there any kind of support for calling functions
Yes.
> in shared libraries
Yes.
> that use the dlopen/dlclose/dlsym interface?
Yes.
> If so, how does it work?
In the same way that we don't explain how fopen() works on your
platform, we also don't tell you how dlopen works. We assume that you
can read your system documentation for such information. You also
commit the sin of not telling us what platform you're working on.
On the SPARC, you will want to use --export-dynamic with GNU ld, if
you're using it. This is documented, but different from Sun's
/bin/ld. Other than that, it should just work.