Hi,

This patch is a small hack, that is needed to load most of regular program (for some reason I forgot to put that on the initial darwin- user patch). Hopefully once darwin-user will have a sanitized guest / qemu memory interface, this could be removed. (I have in mind Paul Brook's guest memory space sliding trick).

Pierre.

Index: Makefile.target
===================================================================
RCS file: /sources/qemu/qemu/Makefile.target,v
retrieving revision 1.142
diff -u -r1.142 Makefile.target
--- Makefile.target     24 Jan 2007 21:40:21 -0000      1.142
+++ Makefile.target     26 Jan 2007 15:08:12 -0000
@@ -172,6 +172,11 @@
 LIBS+=-lmx
 endif
 
+ifdef CONFIG_DARWIN_USER
+# Leave some space for the regular program loading zone
+BASE_LDFLAGS+=-Wl,-segaddr,__STD_PROG_ZONE,0x1000 -image_base 0x0e000000
+endif
+
 OP_CFLAGS+=$(OS_CFLAGS)
 
 #########################################################
_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Reply via email to