I'm debugging a Mac OS X 64bit app with GDB. I see that jumping over a chunk of code solves all my problems.
But:
How can I patch the executable file to implement the jump? I want the app to automatically jump to a defined point in the code without the debugger.
This is what I want to do:
At address 0x1000027a9
(given by the debugger) jump to address 0x100003b6e
.
I'm trying very hard to do it via HexEdit, but with no success. I read anywhere about jmp to absolute addresses opcodes (FF
seems the right opcode, but it's a call, not a jump...) but nothing works. Bad access, segfault.
How can I do that?
See Question&Answers more detail:os