Patching Mach-O binaries

If you want to patch your Mach-O binary with gdb,
you have to start gdb with the –write switch.
Although that’s all you need on Intel systems, it won’t suffice
on MacOS X, because the TEXT segment is not writable.

Use chtext to "correct" the permissions.

It worked perfectly on my 10.3.9 box, but the Tiger
seems to be a little bit bitchier…

Leave a Reply