From 04b1f2ddc98d0ab0c93fdf29fc163f3f09fbf44e Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 8 Nov 2024 15:12:55 +0200 Subject: document __prepare_exec --- src/elf.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/elf.c b/src/elf.c index d590109..adcc263 100644 --- a/src/elf.c +++ b/src/elf.c @@ -162,6 +162,14 @@ static stat_t __map_exec(struct tcb *t, return OK; } +/** + * Map static binary. + * + * @param t Process to map binary in. + * @param ei_c Elf class. + * @param elf Address of static binary. + * @return Entry address or NULL. + */ static vm_t __prepare_exec(struct tcb *t, uint8_t ei_c, vm_t elf) { vm_t phstart = ptradd(elf, elf_header_prop(ei_c, elf, e_phoff)); -- cgit v1.3