This is the mail archive of the
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" <stephen dot done at cw dot com>
- Date: Wed, 30 May 2001 10:23:55 +0100
- Cc: <libc-alpha at sources dot redhat dot com>
I'm very grateful for your advice.
> -----Original Message-----
> From: email@example.com [mailto:firstname.lastname@example.org]
> Sent: 30 May 2001 06:00
> To: email@example.com
> Cc: firstname.lastname@example.org
> Subject: Re: LD_PRELOAD and dlopen
> "Stephen Done at home" <email@example.com> writes:
> n> 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.
> ld searches definitions in the order given on the command line.
> So when you did:
> gcc -Wall -ldl -fPIC -shared -o preload.so preload.c
> /usr/bin/ld: preload.so: undefined versioned symbol name dlopen@@GLIBC_2.1
> /usr/bin/ld: failed to set dynamic section sizes: Bad value
> ld did not search in -ldl for missing function from preload.
> Just run gcc -Wl,-verbose to see the difference and how ld works.
> Andreas Jaeger
> SuSE Labs firstname.lastname@example.org
> private email@example.com