]> git.proxmox.com Git - mirror_qemu.git/commit - configure
configure: don't enable ASLR for --enable-debug Windows builds
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Mon, 5 Oct 2020 13:34:34 +0000 (14:34 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 6 Oct 2020 06:34:49 +0000 (08:34 +0200)
commitcb8baa7720ed38e6e14af27e0039cd593bf3cdc7
tree68109c8db9771e2088e811e886922405c9578949
parent47b30835e48d9bc061cbf0bd606a4925303971a4
configure: don't enable ASLR for --enable-debug Windows builds

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>
Message-Id: <20201005133434.12614-1-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure