From: Fabrice Bellard <fabrice@bellard.org>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: [PATCH] fix interaction with noexecstack
Date: Wed, 29 Sep 2004 23:23:00 +0200 [thread overview]
Message-ID: <415B27B4.4070301@bellard.org> (raw)
In-Reply-To: <4139EA33.5020502@volny.cz>
Applied with some modifications.
Fabrice.
Filip Navara wrote:
> Ronald wrote:
>
>> Tested, need to include <winbase.h> (and <windows.h>).
>> gcc juste produce a warning with VirtualProtect:
>> /home/ronald/Prog/Win32/combo/qemu/exec.c: Dans la fonction «
>> page_init »:
>> /home/ronald/Prog/Win32/combo/qemu/exec.c:155: AVERTISSEMENT: passage de
>> arg 1 de « VirtualProtect » transforme en pointeur un entier sans
>> transtypage
>>
>> aproximative translation: in function page_init passing arg1 of
>> VirtualProtect is making pointer from integer without a cast.
>>
>>
> Thanks much for testing it, now I got a minute to test it on my box. The
> attach patch adds the #include, fixes the warning and also dynamicly
> detects the page size. These changes are actually needed when running
> QEMU on WinXP SP2 on AMD64. I'm quite not happy with the (original)
> patch yet, because it uses "unsigned long" for storing pointer and this
> will *break any 64-bit build* on non-Windows platforms. It would be nice
> if someone can solve it.
>
> (My only hope is that the MinGW build of QEMU will not be broken...)
>
> Regards,
> Filip
>
>> Note: with **VirtualProtect or *VirtualProtect make is aborting, I have
>> used VirtualProtect.
>>
>>
> Sorry, my mail client messed that up
prev parent reply other threads:[~2004-09-29 21:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-04 0:00 [Qemu-devel] [PATCH] fix interaction with noexecstack Lennert Buytenhek
2004-09-04 0:15 ` Lennert Buytenhek
2004-09-04 10:49 ` Fabrice Bellard
2004-09-04 12:19 ` Filip Navara
2004-09-04 14:45 ` [Qemu-devel] " Ronald
2004-09-04 16:15 ` Filip Navara
2004-09-04 17:07 ` [Qemu-devel] " Ronald
2004-09-07 7:59 ` Hartmut Birr
2004-09-05 14:13 ` [Qemu-devel] " Lennert Buytenhek
2004-09-29 21:23 ` Fabrice Bellard [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=415B27B4.4070301@bellard.org \
--to=fabrice@bellard.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).