elf: handle AT_SECURE

This commit is contained in:
Matheus
2025-11-04 18:46:49 -03:00
parent 5d79c7840d
commit 3308a2a39b
3 changed files with 25 additions and 16 deletions
+3 -1
View File
@@ -162,7 +162,9 @@ int elf_load(vnode_t *vnode, void *base, void **entry, char **interpreter, auxv6
auxv64->phnum.type = AT_PHNUM;
auxv64->phent.type = AT_PHENT;
auxv64->entry.type = AT_ENTRY;
auxv64->secure.type = AT_SECURE;
auxv64->secure.val = 0; // set later by whoever called elf_load
auxv64->phnum.val = header.phcount;
auxv64->phent.val = header.phsize;
auxv64->entry.val = header.entry + (uintptr_t)base;