So, I have ARM code which uses R7 as the register to access the stack variables: enter image description here

In the first basic block IDA successfully identified R7 as stack pointer and created the variables. But then, after 40123C, there's still code which references stack variables via R7, and IDA didn't create the variables. If I press K on [R7,#4] it creates the stack variable at +4 offset:

enter image description here

Where in fact, it should have created the variable at -0x14.

Is there any way I can make IDA create stack variable at those LDR R3, [R7,#4] properly?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.