miscemu/wine gets into the way in map_image

Alexandre Julliard julliard at winehq.com
Thu Oct 3 12:15:36 CDT 2002


Uwe Bonnes <bon at elektron.ikp.physik.tu-darmstadt.de> writes:

> Adding 0x400000 and 161087488 gives someting in the 0x09d0000 range. This
> overlaps with the wine executable itself and mmap2 can't satisfiy the request
> in place.

Here's an ugly non-portable hack that might work if you are lucky:

Index: miscemu/Makefile.in
===================================================================
RCS file: /opt/cvs-commit/wine/miscemu/Makefile.in,v
retrieving revision 1.10
diff -u -r1.10 Makefile.in
--- miscemu/Makefile.in	12 Sep 2002 00:52:16 -0000	1.10
+++ miscemu/Makefile.in	3 Oct 2002 17:10:43 -0000
@@ -19,7 +19,7 @@
 ALL_OBJS = $(SPEC_SRCS:.spec=.spec.o) $(OBJS)
 
 $(MODULE): $(ALL_OBJS)
-	$(CC) -o $@ $(ALL_OBJS) -L$(DLLDIR) $(LDIMPORTS:%=-l%) $(LIBWINE) $(LIBUNICODE) $(LIBS) $(LDFLAGS)
+	$(CC) -o $@ -Wl,--section-start,.interp=0x3ff00100 $(ALL_OBJS) -L$(DLLDIR) $(LDIMPORTS:%=-l%) $(LIBWINE) $(LIBUNICODE) $(LIBS) $(LDFLAGS)
 
 wine.spec.c: wine.spec
 	$(LDPATH) $(WINEBUILD) $(DEFS) -o $@ -spec $(SRCDIR)/wine.spec -mgui -L$(DLLDIR) $(IMPORTS:%=-l%)


-- 
Alexandre Julliard
julliard at winehq.com



More information about the wine-devel mailing list