From c9daa8909313b020df57605d0bd50ac48b208d58 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 23 Feb 2023 15:38:17 +0100 Subject: toolchain: update, move to a Camellia-specific toolchain --- src/user/lib/elfload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/user') diff --git a/src/user/lib/elfload.c b/src/user/lib/elfload.c index cb7ce58..3862534 100644 --- a/src/user/lib/elfload.c +++ b/src/user/lib/elfload.c @@ -160,7 +160,7 @@ void elf_exec(void *base, char **argv, char **envp) { void *exebase = elf_loadmem(ehdr); if (!exebase) return; - void *newstack = _sys_memflag((void*)0x11000, 0x1000, MEMFLAG_FINDFREE | MEMFLAG_PRESENT); + void *newstack = _sys_memflag((void*)0x11000, 0x1000, MEMFLAG_FINDFREE | MEMFLAG_PRESENT) + 0x1000 - 8; if (!newstack) return; _freejmp_chstack(exebase + ehdr->e_entry, exebase, elf_spread(ehdr) + 0x1000, (const char**)argv, envp, newstack); -- cgit v1.2.3