Subject: Re: NetBSD ld.elf_so vs FreeBSD ld-elf.so vs Linux ld-linux.so
To: Christos Zoulas <christos@zoulas.com>
From: Martin Husemann <martin@duskware.de>
List: tech-perform
Date: 09/26/2002 21:34:01
On Thu, Sep 26, 2002 at 05:13:17PM +0000, Christos Zoulas wrote:
> In order to be able to start a 2.7G java process instead of a 1.7G one,
> you cannot use /lib/i686 because it still loads at 0x40000000, instead
> of 0x10000000 where it could.
>
> The joys of pre-loading.
Just to make it clear: this is *not* the kind of preloading Bang Jun-Young
is talking about. His proposal put a prefered load addres into each shared
library, but if ld.elf_so is not able to map the lib at that address it
falls back to the complete relocation work we currently do always. (This
is the same way windows handles the problem, if you ever started windows
apps in a debugger that used custom DLLs you've noticed the "Relocating..."
messages from the runtime loader for those DLLs, but never for M$ supplied
ones.)
Martin