From c22af10c12d87a3d9beda7afa94c95b313536d06 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 16 Jul 2024 21:32:48 -0400 Subject: kernel: exec: Save base vaddr in exec_range Signed-off-by: Ian Moffett --- sys/kern/exec_elf64.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/kern') diff --git a/sys/kern/exec_elf64.c b/sys/kern/exec_elf64.c index 8e15839..b207fbb 100644 --- a/sys/kern/exec_elf64.c +++ b/sys/kern/exec_elf64.c @@ -220,6 +220,7 @@ elf64_load(const char *pathname, struct proc *td, struct exec_prog *prog) loadmap[i].start = physmem; loadmap[i].end = physmem + map_len; + loadmap[i].vbase = phdr->p_vaddr; } } -- cgit v1.2.3