kernel: change base load addresses of pie elves and mmap

This commit is contained in:
Matheus
2026-03-08 14:47:52 -03:00
parent 5b44d3557a
commit c2c29d6e9c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ int elf_load(vnode_t *vnode, void *base, void **entry, char **interpreter, auxv6
return ENOEXEC;
if (!base && header.type == ELF_SHARED) {
base = (void *)0x400000;
base = (void *)0x40000000000;
}
auxv64->null.type = AT_NULL;
+1 -1
View File
@@ -106,7 +106,7 @@ syscallret_t syscall_mmap(context_t *context, void *hint, size_t len, int prot,
}
if (hint < USERSPACE_START)
hint = USERSPACE_START;
hint = USERSPACE_MMAP_START;
ret.ret = (uint64_t)vmm_map(hint, len, vmmflags, mmuflags, &vfd);
if (ret.ret == 0)