https://en.wikipedia.org/wiki/Address\_space\_layout\_randomization
On Linux:
[code]sudo sysctl kernel.randomize_va_space=1[/code]
https://askubuntu.com/a/318476
For MinGW:
[code]-Wl,–nxcompat,–dynamicbase -Wl,–pic-executable -Wl,-e,mainCRTStartup[/code]