How to select ARM or THUMB mode when using "Make Code" command?
I have ARM binary and I want to specify ARM or THUMB code making manually in IDA, but how to do this?
Reverse Engineering Stack Exchange is a question and answer site for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation. It only takes a minute to sign up.Sign up to join this community
When IDA first analyzes the binary, it detects which parts of the code are ARM, and which part are THUMB instructions. Then, it creates segments according to the analysis, and marks each segment as a "THUMB" or "ARM" segment.
Press ctrl-G to see which segment has which type (Value 00=ARM, 01=THUMB).
Press alt-G to change the designation of the current segment (the one the cursor is in right now).
If you aren't satisfied with what the analyzer created, use the Edit/Segments submenus to move, resize, create, or delete them.