You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ rizin -c 's main;af;pdg' a.out
// WARNING: [r2ghidra] Matching calling convention arm32 of function main failed, args may be inaccurate.
// WARNING: [r2ghidra] Matching calling convention arm32 of function sym.imp.printf failed, args may be inaccurate.
undefined4 main(void)
{
sym.imp.printf(*(int32_t *)0x490 + 0x47c);
return 0;
}
[0x00000464]> pdc
function main () {
// 1 basic blocks
loc_0x464:
push (fp, lr)
fp = sp
sp = sp - 8
r0 = [pc + 0x18] //[0x490:4]=32 ; 1168
r0 = pc + r0 //"Hello world\n" section..rodata
int printf("Hello world\n")
lr = 0
[sp + 4] = r0
r0 = lr
sp = fp //(pstr 0x0000049c) "Hello world\n"
pop (fp, pc) //section..rodata ; r13
(break)
}
[0x00000464]> pdsf
;-- pc, r15:
0x00000474 "Hello world\n"
0x00000478 bl sym.imp.printf
[0x00000464]>
Expecting:
{
sym.imp.printf("Hello world\n");
return 0;
}
The text was updated successfully, but these errors were encountered:
ITAYC0HEN
changed the title
bad decompilation on arm code hello world
r2ghidra does not properly show a string argument on ARM hello-world program
Jan 20, 2020
XVilka
changed the title
r2ghidra does not properly show a string argument on ARM hello-world program
rz-ghidra does not properly show a string argument on ARM hello-world program
Jan 21, 2021
hello-arm.zip
Expecting:
The text was updated successfully, but these errors were encountered: