调用约定
Radare2 uses calling conventions to help in identifying function formal arguments and return types. It is used also as a guide for basic function prototype and type propagation.
To list all available calling conventions for current architecture using
afcl
command
To display function prototype of standard library functions you have
afcf
command
All this information is loaded via sdb under /libr/anal/d/cc-[arch]-[bits].sdb
cc.x.argi=rax
is used to set the ith argument of this calling convention to register name rax
cc.x.argn=stack
means that all the arguments (or the rest of them in case there was argi for any i as counting number) will be stored in stack from left to right
cc.x.argn=stack_rev
same as cc.x.argn=stack
except for it means argument are passed right to left
最后更新于
这有帮助吗?