[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] configure: don't enable ASLR for --enable-debug Windows buil
From: |
Paolo Bonzini |
Subject: |
Re: [PATCH] configure: don't enable ASLR for --enable-debug Windows builds |
Date: |
Mon, 5 Oct 2020 15:45:51 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 |
On 05/10/20 15:42, Richard Henderson wrote:
> On 10/5/20 8:34 AM, Mark Cave-Ayland wrote:
>> Unlike other OSs it is not possible for gdb to temporarily disable ASLR when
>> debugging executables on Windows which causes gdb to fail with memory access
>> errors when trying to debug QEMU.
>>
>> Keep ASLR enabled by default on Windows via the --dynamicbase compiler flag
>> except for --enable-debug builds when there is a clear expectation that a
>> functioning gdb is expected at the cost of slightly less security.
>>
>> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
>> ---
>> configure | 9 ++++++++-
>> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Queued, thanks.
Paolo