[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH] fix qruncom compilation problems

From: Paolo Bonzini
Subject: [Qemu-devel] Re: [PATCH] fix qruncom compilation problems
Date: Thu, 09 Dec 2010 08:16:22 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20101103 Fedora/1.0-0.33.b2pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.6

On 12/08/2010 10:43 PM, Stefano Bonifazi wrote:
I've linked qemu-malloc.o and cutils.o together with qruncom.c and I
managed to succesfully make it!
here the make line:
#$(MAKE) -C ../i386-linux-user libqemu.a
$(CC) $(CFLAGS) -fomit-frame-pointer $(LDFLAGS) -I../target-i386 -I..
-I../linux-user -I../i386-linux-user -I../fpu \
-o $@ ../qemu-malloc.o ../cutils.o $(filter %.c, $^)
-L../i386-linux-user -lqemu -lm

Anyway running it with a com file as argument gave the error:
mmap: Operation not permitted
I think the problem is with "MAP_FIXED" parameter in mmap
(http://opengroup.org/onlinepubs/007908799/xsh/mmap.html) having chosen
0x00000000 as starting address.. but it is pretty difficult for me atm
to understand it, I've never used this function before and I am a
beginner in these topics
Removing that parameter mmap succeeds, but then I get "segmentation
fault" in cpu_init

You have to run it as root I think.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]