[PATCH 2/2] libwine: add support for mmap at fixed start addresses on FreeBSD
18 May
2020
18 May
'20
7:04 p.m.
The way to implement MAP_TRYFIXED on FreeBSD is call mmap() with MAP_FIXED | MAP_EXCL, which will allocate the mapping from the exact starting address if possible, and if that fails, call mmap() again without them. This gets PE DLLs loading at their correct base addresses, and fixes a FreeBSD-specific problem with Cygwin's fork() caused by cygwin1.dll loading at different base addresses in the parent and child. Signed-off-by: Damjan Jovanovic <damjan.jov(a)gmail.com> --- libs/wine/mmap.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-)
2040
Age (days ago)
2040
Last active (days ago)
0 comments
1 participants
participants (1)
-
Damjan Jovanovic