Disable randomization of memory addresses

前端 未结 3 1736
一个人的身影
一个人的身影 2020-11-29 00:07

I\'m trying to debug a binary that uses a lot of pointers. Sometimes for seeing output quickly to figure out errors, I print out the address of objects and their correspondi

3条回答
  •  星月不相逢
    2020-11-29 00:51

    To temporarily disable ASLR for a particular program you can always issue the following (no need for sudo)

    setarch `uname -m` -R ./yourProgram
    

提交回复
热议问题