Subject: Re: Wine & NetBSD?
To: Todd Vierling <tv@wasabisystems.com>
From: Martin Husemann <martin@duskware.de>
List: tech-kern
Date: 11/21/2001 02:19:26
> (Note that properly compiled Win32 DLLs *are* relocateable by the loader;
> this just results in slower startup.  Such DLLs can be mapped arbitrarily
> without MAP_FIXED, of course, provided that they are always relocated after
> such a mmap.)

Seconded.

If you ever run arbitrary applications in a debugger under NT/W2K, you will
notice tons of relocating messages from their ld.so equivalent (RTLD).

While M$ does it for all their system stuff (and most applications), nearly
everyone else does not bother to optimize load addresses (although there is
utility that makes it realy easy to do so, even as a postprocess after
compiling.)

So in a typical (non system supplied) application starting up on any M$ Win32
system, the DLLs (most liklely all but the first one loaded) will be relocated.


Martin