[prev in list] [next in list] [prev in thread] [next in thread] 

List:       qemu-devel
Subject:    [Qemu-devel] [Patch] darwin-user: Save some vm space for the
From:       "Pierre d'Herbemont" <pdherbemont () free ! fr>
Date:       2007-01-26 15:14:43
Message-ID: 18BEED93-6FB8-4E50-8508-E6105C7C7D24 () free ! fr
[Download RAW message or body]

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.


["darwin_user_leave_space_for_std_prog.diff.txt" (darwin_user_leave_space_for_std_prog.diff.txt)]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic