Type your comment> @HomeSen said:
@LMAY75 said:
(Quote)
Indeed. The calling convention (aka ABI) on x64 Linux is as follows (for “integer arguments”):function($rdi, $rsi, $rdx, $rcx, $r8, $r9)
In cases where you need more parameters, they will be pushed to the stack.
And __libc_start_main is defined as:
int __libc_start_main(int *(main) (int, char * *, char * *), int argc, char * * ubp_av, void (*init) (void), void (*fini) (void), void (rtld_fini) (void), void ( stack_end));
Fantastic, thanks this helped a lot!