BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005314 [uClibc] Shared Library Support feature always 10-08-08 10:51 10-12-08 13:44
Reporter chrisz View Status public  
Assigned To uClibc
Priority normal Resolution open  
Status assigned   Product Version
Summary 0005314: 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.



Additional Information
Attached Files

- Relationships

- Notes
(0013294)
carmelo73
10-11-08 23:29

Could provide an example of application that rely upon the $ORIGIN token ?
Never seen one. Thanks.
 
(0013364)
chrisz
10-12-08 02:35

Actually, in this case it was Perl compiled with the "relative paths" option, however, any application could make use of this in theory. I wouldn't call this a high priority problem, just something that needs to be added for completeness and consistency.

Perl in this case was desired with relative paths, because it is big and I was putting it on a USB thumbdrive, and could not be sure where that would be mounted in the future.
 
(0013374)
bernhardf
10-12-08 13:44

Can you please provide a small, simple, stand-alone testcase (that could theoretically be added to the testsuite) to reproduce this problem?
 

- 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
10-12-08 02:35 chrisz Note Added: 0013364
10-12-08 13:44 bernhardf Note Added: 0013374


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker