diff options
Diffstat (limited to 'src/elf.c')
| -rw-r--r-- | src/elf.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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)); |
