Editing assembly on Mac OS X
I'm currently disassembling a Mach-O executable(the executable runs on Mac OS X, to be specific) in IDA Pro on windows. I have one instruction which I want to change, but it doesn't seem that IDA Pro [allows you to do this][1]. So, I tried using otool on OS X to dump the assembly(which it does fine). However, after editing the assembly in otool, I tried to reassemble it using `as <file name of modified otool -tV output>`. This greets me with a bunch of errors like `Junk character 43 (+)`. What's the easiest way to change just a single instruction in a Mach-O binary on Mac OS X?


  [1]: http://stackoverflow.com/questions/969901/edit-patch-a-binary-file-in-ida-pro
Editing assembly on Mac OS X
===

I'm currently disassembling a Mach-O executable(the executable runs on Mac OS X, to be specific) in IDA Pro on windows. I have one instruction which I want to change, but it doesn't seem that IDA Pro [allows you to do this][1]. So, I tried using otool on OS X to dump the assembly(which it does fine). However, after editing the assembly in otool, I tried to reassemble it using `as <file name of modified otool -tV output>`. This greets me with a bunch of errors like `Junk character 43 (+)`. What's the easiest way to change just a single instruction in a Mach-O binary on Mac OS X?


  [1]: http://stackoverflow.com/questions/969901/edit-patch-a-binary-file-in-ida-pro