Re:ARM or x86? ISA Doesn't Matter
by saagarjha on Saturday August 31, 2024 @09:16PM
(#41413393)
> Thanks to fixed-length instructions and alignment rules, you always know whether you're in thumb or not.
As someone who did this literally yesterday, no you do not. Doing this properly requires tracing control flow, which is an undecidable problem. In fact x86-64 is way easier in practice because real code is somewhat self-synchronizing if you just disassemble linearly and for ARM this doesn’t work nearly as well.
As someone who did this literally yesterday, no you do not. Doing this properly requires tracing control flow, which is an undecidable problem. In fact x86-64 is way easier in practice because real code is somewhat self-synchronizing if you just disassemble linearly and for ARM this doesn’t work nearly as well.