Hello I'm playing with my native android library, everything was going smoothly till now. I have problem with opcodes, i don't know how to tell radare2 to write str opcode with specifc registry, and point it to stack pointer and local variable.
Lib loaded via :
r2 -Aw lib/arm64-v8a/libnative-lib.so
| ; var int local_ch @ sp+0xc | ; var int local_10h @ sp+0x10 | ; var int local_18h @ sp+0x18 [...] | 0x0000946c e00f00f9 str x0, [sp + local_18h] | 0x00009470 e10b00f9 str x1, [sp + local_10h]
[0x00009470]> wa str x1,sp+local_10h Written 4 byte(s) (str x1,sp+local_10h) = wx e10300f9
[0x00009470]> pd 1 | 0x00009470 e10300f9 str x1, [sp]
Output that i want but don't know how to get it (note the "+ local_10h" label)
[0x00009470]> pd 1 | 0x00009470 e10b00f9 str x1, [sp + local_10h]