[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to use a different ld-linux.so?
From: |
Paul Jarc |
Subject: |
Re: How to use a different ld-linux.so? |
Date: |
Thu, 01 Jul 2004 23:36:33 -0400 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) |
"Paul Smith" <pausmith@nortelnetworks.com> wrote:
> %% prj@po.cwru.edu (Paul Jarc) writes:
> pj> Ok. Can you relink the newer system's binaries, though? This
> pj> would work on Linux, if you can stand the smell: use
> pj> /proc/self/fd/42/lib in the binaries, and always make sure
> pj> descriptor 42 is open to the right "root" directory.
>
> Yow!!!
You bet, yow. It works on Solaris too, except that Solaris doesn't
have /proc/self.
> That's crazy! Have you tried this; does it really work?
Not specifically with dynamic linking, but:
$ ls -lid src /proc/self/fd/42/src 42< .
3972 drwxr-xr-x 18 prj default 528 Jun 29 22:26 /proc/self/fd/42/src
3972 drwxr-xr-x 18 prj default 528 Jun 29 22:26 src
The fd/* entries seem to work just like normal symlinks, at least for
2.4.
paul