[uClibc 0005314]: ldso fails for ELF relative search paths

bugs at busybox.net bugs at busybox.net
Sun Oct 12 06:29:38 UTC 2008


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=5314 
====================================================================== 
Reported By:                chrisz
Assigned To:                uClibc
====================================================================== 
Project:                    uClibc
Issue ID:                   5314
Category:                   Shared Library Support
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             10-08-2008 10:51 PDT
Last Modified:              10-11-2008 23:29 PDT
====================================================================== 
Summary:                    ldso fails for ELF relative search paths
Description: 
I attempted to run an ELF binary with rpath set to $ORIGIN/../lib. ldso
failed to correctly locate the shared library. Changing rpath to a
complete path reference and relinking allowed the binary to run.

I checked the dl-elf.c file, and there does not appear to be support for
$ORIGIN, $ISALIST, $OSNAME, $OSREL and $PLATFORM tokens. This leads to an
incompatibility on some binaries which will run with glibc, but not with
uClibc.

The condition can be dealt with by either relinking the binary with a hard
coded path, or using the LD_LIBRARY_PATH variable to assist ld in locating
the libraries. This is a minor feature which should be added to ldso for
completeness, with a compile time flag if the feature is not desired.




====================================================================== 

---------------------------------------------------------------------- 
 carmelo73 - 10-11-08 23:29  
---------------------------------------------------------------------- 
Could provide an example of application that rely upon the $ORIGIN token ?
Never seen one. Thanks. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-08-08 10:51  chrisz         New Issue                                    
10-08-08 10:51  chrisz         Status                   new => assigned     
10-08-08 10:51  chrisz         Assigned To               => uClibc          
10-11-08 23:29  carmelo73      Note Added: 0013294                          
======================================================================




More information about the uClibc-cvs mailing list