-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to identify functions parameters? #43
Comments
The easy answer to this question is that a program usually has something called a "calling convention", which is something the compiler decided as the best way to pass arguments from one function to another. Calling conventions are relatively stable on individual platforms, so for linux x64 programs it's a relatively safe bet that your arguments are passed in rdi, rsi, rdx, rcx, r8, r9, and then the rest of them are on the stack. This question is pretty hard in the general case, so angr has support for analyzing for calling conventions, then representing them with a |
Thanks @rhelmot, Thanks |
* Allow all arm svc numbers * Unlimit arm thumb svc numbers Co-authored-by: Audrey Dutcher <audrey@rhelmot.io>
Hi,
suppose I have a .c file with the following code:
The VEX IR for the first block would be
Obv rdi is the register containing the parameter but how can i identify it in real time?
Thanks
The text was updated successfully, but these errors were encountered: