Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Off topic, but does anybody know if there's a way to turn off ASLR e.g. while debugging (honestly, i'd be interested if you can do this on any platform)? I'm pretty confident the answer is no, but it can really be a pain sometimes...


Either the linker, or GDB (or your debugger) can disable it for you. Under GDB it's controlled by the setting disable-randomization (defaults to false).


/proc/sys/kernel/randomize_va_space on Linux?


On Windows, the linker has an option to do that.


setarch x86_64 --addr-no-randomize myprogram args...

(or -R for short)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: