diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-16 20:52:05 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-16 20:52:05 -0400 |
commit | 3ed526d5ae90130bcc8e12c53d970c503eab9004 (patch) | |
tree | 7990ef89353faefd1e2bfe847f27e1d444d93012 /src/sys | |
parent | 0be847dacb5cff02af0f85fbc961291b39cf70b6 (diff) |
kernel: elf: Load ELFs into memory
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/os/os_elf64.c | 5 |
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; } |