bitcoin/bitcoin — pull request #1673 by Diapolo (2012-08-14 09:44:45+00:00)
Title: Bitcoin-Qt (Windows only): add ASLR and DEP linker flags

- for extra security on Windows: enable ASLR and DEP linker flags
- this is only enabled for relase builds to not potentially complicate
debugging

Tor project is using also this. Even if we don't want this for 0.7 it should be tested and talked about for the next release IMHO.

This pull enables 2 GCC linker flags:

--dynamicbase The image base address may be relocated using address space layout randomization ( ASLR ). This feature was introduced with MS Windows Vista for i386 PE targets.

--nxcompat The image is compatible with the Data Execution Prevention. This feature was introduced with MS Windows XP SP2 for i386 PE targets.