linux-mips
[Top] [All Lists]

Re: backwards compatible ld.so patch

To: Ryan Murray <rmurray@debian.org>
Subject: Re: backwards compatible ld.so patch
From: Ralf Baechle <ralf@oss.sgi.com>
Date: Mon, 14 May 2001 17:36:55 -0300
Cc: linux-mips@oss.sgi.com
In-reply-to: <20010513115431.A342@cyberhqz.com>; from rmurray@debian.org on Sun, May 13, 2001 at 11:54:31AM -0700
References: <20010513115431.A342@cyberhqz.com>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5i
On Sun, May 13, 2001 at 11:54:31AM -0700, Ryan Murray wrote:

> Attached is a patch that changes the MAP_BASE_ADDR macro to one that Dan
> mentioned in his question about a backwards-compatible change to ld.so
> that allows both new and old shlibs to run.
> 
> This seems to work -- I've run perl (with an old-binutils libperl.so), with
> a new-binutils built ld.so and libc.so, and it works fine.  The comment above
> the change should probably be updated to indicate the new state of things,
> as well...
> 
> Comments?

Wrong.  You're replacing a hack with something even more evil.

Right thing would be to make sure that the dynamic table is loaded before
MAP_BASE_ADDR gets dereferenced; then you can reactivate the commented out
code.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>