Hi
Is this patch still necessary? It looks like I already have the correct base address for kernel32, on both the ELF build, and my hacked-up PE build (using mingw from Debian running on FreeBSD's Linuxulator).
PE build:
$ cat /proc/23365/map | grep kernel32
0x7b600000 0x7b601000 1 0 0xfffff8026db42000 r-- 72 27 0x1000 COW NC vnode /compat/i386/usr/home/dj/.local/lib/wine/kernel32.dll CH 1003
0x7b601000 0x7b631000 48 0 0xfffff8026db42000 r-x 72 27 0x1000 COW NC vnode /compat/i386/usr/home/dj/.local/lib/wine/kernel32.dll CH 1003
0x7b631000 0x7b635000 4 0 0xfffff8039bd70900 rw- 1 0 0x3000 COW NNC vnode /compat/i386/usr/home/dj/.local/lib/wine/kernel32.dll CH 1003
0x7b635000 0x7b639000 4 0 0xfffff8026db42000 r-- 72 27 0x1000 COW NC vnode /compat/i386/usr/home/dj/.local/lib/wine/kernel32.dll CH 1003
0x7b63a000 0x7b63b000 1 0 0xfffff800b7497d00 rw- 1 0 0x3000 COW NNC vnode /compat/i386/usr/home/dj/.local/lib/wine/kernel32.dll CH 1003
0x7b63b000 0x7b64a000 14 0 0xfffff8026db42000 r-- 72 27 0x1000 COW NC vnode /compat/i386/usr/home/dj/.local/lib/wine/kernel32.dll CH 1003
0x7b64a000 0x7b6a7000 77 0 0xfffff8038bd8c100 rw- 1 0 0x3000 COW NC vnode /compat/i386/usr/home/dj/.local/lib/wine/kernel32.dll CH 1003
0x7b6a7000 0x7b78c000 213 0 0xfffff8026db42000 r-- 72 27 0x1000 COW NC vnode /compat/i386/usr/home/dj/.local/lib/wine/kernel32.dll CH 1003
ELF build:
$ cat /proc/14134/map | grep kernel32
0x7b600000 0x7b620000 32 0 0xfffff800a17c1600 r-x 1 0 0x2000 COW NC vnode /compat/i386/usr/home/dj/.local/opt/wine-elf/lib/wine/
kernel32.dll.so CH 1003
0x7b621000 0x7b676000 63 0 0xfffff802666dd500 r-x 1 0 0x3000 COW NC vnode /compat/i386/usr/home/dj/.local/opt/wine-elf/lib/wine/
kernel32.dll.so CH 1003
0x7b676000 0x7b6de000 104 0 0xfffff802664f8000 rw- 1 0 0x3000 COW NNC vnode /compat/i386/usr/home/dj/.local/opt/wine-elf/lib/wine/
kernel32.dll.so CH 1003
Maybe Wine already loads kernel32.dll(.so) at the right base address, after 55ba3648379d90642f174e74809b84130d6d1ddc and e0138c4a6a7a87f1d25badd43e05490e706bc666 fixed mmap() usage on FreeBSD, and/or other recent commits?