[PATCH 0/2] Unaligned mmap() on Mac OS X

Charles Davis cdavis at mymail.mines.edu
Wed May 12 21:17:22 CDT 2010

On 5/12/10 6:10 PM, Ken Thomases wrote:
> On May 12, 2010, at 6:53 PM, Charles Davis wrote:
>> On 5/12/10 5:37 PM, Ken Thomases wrote:
>>> What problems does this cause?
>> It makes Wine use more memory than it needs to.
>> http://wiki.winehq.org/UnalignedMmap
>>> Can't we achieve that just by avoiding the mapping of the "mmap" identifier to the _mmap$UNIX2003 symbol?
>> We could for 32-bit, but not 64-bit.
> And does the problem still matter in 64-bit?
Probably. Everything I've read seems to indicate that the 64-bit PE
format is just that--a 64-bit version of the PE format. In particular,
it seems to me that disk alignment can still be less than one page.
> Also, are unaligned PE images also prevalent for 64-bit executables?
I wouldn't know, I've never seen an actual Win64 executable.
> There are many cases in which 64-bit ABIs impose stricter alignment requirements.
That's certainly true.
> I don't know if this is one of them.
Somehow I doubt it is.


More information about the wine-devel mailing list