Re: FreeBSD and wine mmap

From: John Birrell <jb_at_cimlogic.com.au>
Date: Thu, 5 Aug 2004 15:07:25 +1000
On Wed, Aug 04, 2004 at 03:46:42PM -0700, Julian Elischer wrote:
> /proc/curproc/map
> can give you a quick temporary solution..
> julian_at_ref3:cat /proc/curproc/map

I can't see how that gives a quick temporary solution. The mmaps we are
talking about are the ones done by rtld. Wine libraries are standard
Unix shared libraries that are dlopen'ed. The fact that the load fails
is due to the upper process memory being deliberately consumed before
the libraries are loaded. Screwing up rtld seems like a poor idea to
me.

The Wine people say that Linux now loads shared libraries at random
addresses to make buffer overruns less predictable. That's why they
gobble upper memory as soon as they can (albeit after libc has been
loaded because that's linked to the Wine program). Presumably FreeBSD
may one day consider doing the same thing for the same reason.

-- 
John Birrell
Received on Thu Aug 05 2004 - 03:07:28 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:04 UTC