This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

marking executables with LD_LIBRARY_PATH



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]