From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=43950 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1ECZ-0003Mf-NL for qemu-devel@nongnu.org; Thu, 30 Sep 2010 04:09:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P1ECY-0005jW-UK for qemu-devel@nongnu.org; Thu, 30 Sep 2010 04:09:15 -0400 Received: from mail-iw0-f173.google.com ([209.85.214.173]:63072) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1ECY-0005jO-Li for qemu-devel@nongnu.org; Thu, 30 Sep 2010 04:09:14 -0400 Received: by iwn38 with SMTP id 38so2307820iwn.4 for ; Thu, 30 Sep 2010 01:09:14 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4CA445A5.4040303@redhat.com> Date: Thu, 30 Sep 2010 10:09:09 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH, RFT] mingw32: use ASLR, no-SEH and DEP if available List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: TeLeMan , qemu-devel On 09/29/2010 07:04 PM, Blue Swirl wrote: > On Wed, Sep 29, 2010 at 2:38 AM, TeLeMan wrote: >> GDB can not insert breakpoints on Windows Vista/7 because of the flag >> -dynamicbase. > > I'd suppose that is a bug in GDB, or rather a missing feature. ASLR is > automatically disabled by GDB 7, but that and "set > disable-randomization on" seems to work only on Linux. > > For QEMU, it could be possible to make a workaround (for example a new > flag for configure which disables ASLR). I think ASLR enabled should > be the default. You can piggyback that onto --enable-pie/--disable-pie. Enabling PIE by default would be a good thing in general for security, BTW, even for softmmu targets. Paolo