From 42a2bdaecaee627247689b3f4ff2828fe3c8dc97 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Thu, 11 Sep 2025 14:37:04 -0400 Subject: load init from ELF executable --- arch/x86_64/elf.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/x86_64/elf.c') diff --git a/arch/x86_64/elf.c b/arch/x86_64/elf.c index 696b7a7..ae0fa71 100644 --- a/arch/x86_64/elf.c +++ b/arch/x86_64/elf.c @@ -1,4 +1,5 @@ #include "elf.h" +#include "init.h" #include int @@ -23,5 +24,6 @@ elf64_loadexec(Elf64_Ehdr *ehdr) if(!elf64_ehdr_valid(ehdr)) return NULL; void *entry = (void*)ehdr->e_entry; + return entry; } -- cgit v1.2.1