elf: add AT_EXECFN

This commit is contained in:
Qwinci
2025-01-13 16:15:08 +02:00
parent 75a24d3026
commit ae2f69d3b8
4 changed files with 15 additions and 6 deletions
+1 -1
View File
@@ -361,7 +361,7 @@ void proc_run_init() {
char *argv[] = {"/init", cmdline_get("initarg"), NULL};
char *envp[] = {NULL};
void *stack = elf_preparestack(STACK_TOP, &auxv64, argv, envp);
void *stack = elf_preparestack(STACK_TOP, &auxv64, argv, envp, "/init");
__assert(stack);
// reenter kernel context