I want to create an executable that keeps the same virtual address during different execution runs.
This is definitely possible because I've seen these files in CTFs(Capture the flag) where the player has to use a buffer overflow, to rewrite the return address in order to execute a "secret" function.
So, is there a way to tell GCC to generate an executable that "doesn't" allow memory randomization on execution?
Or maybe I'm thinking it all wrong. Any info you can share to point me on the right direction will be appreciated.