This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
RE: LD_PRELOAD and dlopen
- To: <aj at suse dot de>
- Subject: RE: LD_PRELOAD and dlopen
- From: "Stephen Done at home" <stephen dot done at cw dot com>
- Date: Tue, 29 May 2001 21:05:41 +0100
- Cc: <libc-alpha at sources dot redhat dot com>
- Reply-To: <stephen dot done at cw dot com>
Hi Andreas,
That did indeed fix the problem. If you have time, could you give a very
quick explanation of why, and also perhaps why gcc acted differently under
Solaris with the 'undefined versioned symbol name dlopen@@GLIBC_2.1' error.
Thanks again
Steve
> -----Original Message-----
> From: aj@suse.de [mailto:aj@suse.de]
> Sent: 29 May 2001 20:23
> To: Stephen Done
> Cc: libc-alpha@sources.redhat.com
> Subject: Re: LD_PRELOAD and dlopen
>
>
> "Stephen Done" <stephen.done@cw.com> writes:
>
> > FAILED - Linux with -ldl
> > ========================
> > # make
> > gcc -Wall -ldl -fPIC -shared -o preload.so preload.c
>
> The order is important, put -ldl last:
>
> gromit:/tmp/pr:[0]$ gcc -Wall -fPIC -shared -o preload.so preload.c -ldl
> gromit:/tmp/pr:[0]$
>
> And everything seems to work for me,
>
> Andreas
> --
> Andreas Jaeger
> SuSE Labs aj@suse.de
> private aj@arthur.inka.de
> http://www.suse.de/~aj
>