summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sys/os/os_elf64.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sys/os/os_elf64.c b/src/sys/os/os_elf64.c
index 53d0fb5..ccb5b06 100644
--- a/src/sys/os/os_elf64.c
+++ b/src/sys/os/os_elf64.c
@@ -203,6 +203,11 @@ elf_load(const char *path, struct proc *proc, struct loaded_elf *res)
return error;
}
+ error = elf64_do_load(eh, proc);
+ if (error < 0) {
+ return error;
+ }
+
res->entrypoint = eh->e_entry;
return 0;
}