[2/2] kernel32: force 4096 byte page alignment.

David Naylor dbn at freebsd.org
Mon Feb 2 14:20:57 CST 2015


FreeBSD prefers to use a 0x200000 (super) page alignment however this causes
the image base to be displaced from the requested 0x7b800000.  Forcing a
smaller page size ensures FreeBSD can place the image starting at 0x7b800000.
---
 dlls/kernel32/Makefile.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/kernel32/Makefile.in b/dlls/kernel32/Makefile.in
index c09771d..a006c2c 100644
--- a/dlls/kernel32/Makefile.in
+++ b/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,0x7b800000
+EXTRADLLFLAGS = -nodefaultlibs -Wb,-F,KERNEL32.dll -Wl,--image-base,0x7b800000 \
+	-Wl,-z,max-page-size=0x1000
 
 C_SRCS = \
 	actctx.c \
-- 
2.2.2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part.
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150202/ed932d0f/attachment.sig>


More information about the wine-patches mailing list