How do you disable ASLR (address space layout randomization) on Windows 7 x64?

Previously you had to opt in to allowing the linker to use ASLR. Now, you have to opt out:

/DYNAMICBASE[:NO]

(Visual Studio 2012: Configuration Properties -> Linker -> Advanced -> “Randomized Base Address”)

You can also do it programmatically.

Leave a Comment