Author: David Naylor Date: Mon Feb 2 22:10:55 2015 +0200 Author: Gerald Pfeifer Date: Sat Apr 2 17:11:55 UTC 2016 kernel32: force 4096 byte page alignment. FreeBSD prefers to use a 0x200000 (super) page alignment however this causes the image base to be displaced from the requested 0x7b400000. Forcing a smaller page size ensures FreeBSD can place the image startin at 0x7b400000. --- UTC diff --git a/dlls/kernel32/Makefile.in b/dlls/kernel32/Makefile.in index c09771d..a006c2c 100644 --- dlls/kernel32/Makefile.in +++ dlls/kernel32/Makefile.in @@ -3,7 +3,8 @@ MODULE = kernel32.dll IMPORTLIB = kernel32 IMPORTS = winecrt0 ntdll EXTRALIBS = $(COREFOUNDATION_LIBS) $(POLL_LIBS) -EXTRADLLFLAGS = -nodefaultlibs -Wb,-F,KERNEL32.dll -Wl,--image-base,0x7b400000 +EXTRADLLFLAGS = -nodefaultlibs -Wb,-F,KERNEL32.dll -Wl,--image-base,0x7b400000 \ + -Wl,-z,max-page-size=0x1000 C_SRCS = \ actctx.c \