libwine: Make addresses above 0x82000000 available on FreeBSD.

Tijl Coosemans tijl at
Mon Sep 20 16:42:51 CDT 2010

On Monday 20 September 2010 23:37:28 Chris Robinson wrote:
> On Monday, September 20, 2010 2:20:00 pm Tijl Coosemans wrote:
>> I've attached a patch that takes a different approach. I still need to
>> test it more extensively, but is this patch acceptable in principle?
>> It adds an mmap symbol to the loader thereby overriding the libc symbol.
> I've actually been working on a patch recently that does this, and will
> probably be RFC'ing it here soon. It overrides the mmap/munmap calls and
> redirects them to use the process heap when possible. You have to be
> careful, though, because 'mmap' uses off_t. On 32-bit systems this is by
> default a 32-bit type, but with _FILE_OFFSET_BITS=64, off_t becomes a
> 64-bit type and mmap is redirected to mmap64.

On FreeBSD off_t is always 64 bit.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the wine-devel mailing list