mirror of
https://github.com/frida/tinycc
synced 2024-11-24 08:39:37 +03:00
x86_64/elf: only variadic calls need rax
This commit is contained in:
parent
0373fe0e2a
commit
c948732efa
@ -1441,7 +1441,8 @@ void gfunc_call(int nb_args)
|
||||
}
|
||||
}
|
||||
|
||||
oad(0xb8, nb_sse_args < 8 ? nb_sse_args : 8); /* mov nb_sse_args, %eax */
|
||||
if (vtop->type.ref->c != FUNC_NEW) /* implies FUNC_OLD or FUNC_ELLIPSIS */
|
||||
oad(0xb8, nb_sse_args < 8 ? nb_sse_args : 8); /* mov nb_sse_args, %eax */
|
||||
gcall_or_jmp(0);
|
||||
if (args_size)
|
||||
gadd_sp(args_size);
|
||||
|
Loading…
Reference in New Issue
Block a user