This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
marking executables with LD_LIBRARY_PATH
- To: binutils at sources dot redhat dot com
- Subject: marking executables with LD_LIBRARY_PATH
- From: "Marty Leisner" <mleisner at eng dot mc dot xerox dot com>
- Date: Tue, 23 Jan 2001 15:05:43 -0500
I haven't delved into object formats in a while...
I recently read a paper on "Why LD_LIBRARY_PATH is bad"
(http://www.visi.com/%7ebarr/ldpath.html).
I agree with this (I'm now going through LD_LIBRARY_PATH gyrations).
One of the things the author asks for is:
Have OS's ship with programs which allow one to safely change an executable's run-time linker path.
Is there a way to do it in the linker (I'm running 2.10.1) on elf systems?
The choice to "relink" the objects is bad...(when they're not there).
I tried "relinking" the executable, it doesn't seem to do anything useful
(although its not making a carbon copy of the input -- but its the same size and
also runs with the right LD_LIBRARY_PATH).
This seems something very useful and very easy -- just sticking a few
bytes in the right place of a binary...
Is there a way to look at the built in rpaths with readelf?
Seems this would also be useful...
marty mleisner@eng.mc.xerox.com
Don't confuse education with schooling.
Milton Friedman to Yogi Berra