Use executable's RPATH in looking up library searching path.

Filippo ARCIDIACONO filippo.arcidiacono at st.com
Fri Sep 23 15:23:05 UTC 2011


 

> -----Original Message-----
> From: Mike Frysinger [mailto:vapier at gentoo.org] 
> Sent: Friday, September 23, 2011 4:40 PM
> To: uclibc at uclibc.org
> Cc: Filippo ARCIDIACONO
> Subject: Re: Use executable's RPATH in looking up library 
> searching path.
> 
> On Thursday, September 22, 2011 11:39:24 Filippo ARCIDIACONO wrote:
> > When the dynamic linker load and resolve the library 
> dependencies for 
> > an executable, It should use the executable's rpath as 
> searching path 
> > for all his needed libraries.
> 
> i don't see any justification to back up this statement other 
> than "this is what glibc does".  i'm honestly not too 
> concerned by that as there are places already we deviate from 
> glibc behavior by design.  what i do want to know is what the 
> ELF spec says.  could you look that up (i dont have a copy 
> off hand and the LF is down still) ?

The ELF spec says what is the RPATH, but nothing about the dynamic linker
Use the rpath in library search path.
Other references are not so clear. The only reference (apart from glibc
sources)
I found is http://wiki.debian.org/RpathIssue where seems clear to use the
executable's
Rpath as searching path for needed libraries.

> -mike
> 



More information about the uClibc mailing list