[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to use a different ld-linux.so?
From: |
Paul D. Smith |
Subject: |
Re: How to use a different ld-linux.so? |
Date: |
29 Jun 2004 09:54:41 -0400 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
%% John Reiser <jreiser@BitWagon.com> writes:
>> The rtldi tool looks interesting, but I'm not sure it will work in our
>> environment: we really need a way of choosing at runtime, not link time,
>> what the pathname to the linker will be.
jr> rtldi chooses which ld-linux.so.2 at runtime, after the main
jr> executable has been invoked by execve(). rtldi just happens to
jr> base its choice on the contents of the PT_INTERP, something that
jr> was known at the time of execve(); but it is obvious that a
jr> modified rtldi could consult time(), read(), etc., [or even
jr> getenv()] to make its choice "more dynamically."
OK, I'll check out the code. I was at first thrown off by the
requirement that the "real" ld-linux path must be no longer than the one
in the executable but now I see that this applies only to old
executables you're trying to patch without rebuilding.
Thanks John!
--
-------------------------------------------------------------------------------
Paul D. Smith <psmith@nortelnetworks.com> HASMAT--HA Software Mthds & Tools
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
These are my opinions---Nortel Networks takes no responsibility for them.