http://bugs.winehq.org/show_bug.cgi?id=10282
--- Comment #8 from Alexandre Julliard julliard@winehq.org 2007-11-05 03:35:24 --- (In reply to comment #7)
No need to emulate anything because when an application does such mmap system call then the driver returns ENODEV which can be easily handled. See mmap(2).
It can't really be handled, all we can do is report the failure to the app, which in most cases will crash since the app doesn't expect it.
Please also realize that mmap(2) has absolutely nothing to do with this bug report.
Judging from the traces in bug 10255 the problem is a failure to map code as executable, so it looks to me like that it's quite likely related to mmap...