From da8eeb7695a4803d1d45c8c26c05a51fb1ba1e55 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 9 Jun 2022 23:50:14 +0300 Subject: continue documentation --- common/elf.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'common/elf.c') diff --git a/common/elf.c b/common/elf.c index 88c5ddc..f947b60 100644 --- a/common/elf.c +++ b/common/elf.c @@ -30,13 +30,13 @@ static void __map_exec(struct tcb *t, vm_t bin, uint8_t ei_c, vm_t phstart, { hard_assert(t && is_proc(t), RETURN_VOID); - /* TODO: take alignment into consideration? */ - /* TODO: take overlapping memory regions into account, probably mostly + /* \todo: take alignment into consideration? */ + /* \todo: take overlapping memory regions into account, probably mostly * by keeping track of previously allocated area and seeing if the * segment fits into it */ - /* TODO: check if p_memsz is larger than p_filesz, the segment should be + /* \todo: check if p_memsz is larger than p_filesz, the segment should be * filled with zeroes. */ - /* TODO: in general, make this a low more clean. */ + /* \todo: in general, make this a low more clean. */ vm_t runner = phstart; vmflags_t default_flags = VM_V | VM_R | VM_W | VM_X | VM_U; for (size_t i = 0; i < phnum; ++i, runner += phsize) { @@ -61,7 +61,7 @@ static void __map_exec(struct tcb *t, vm_t bin, uint8_t ei_c, vm_t phstart, memcpy((void *)va, (void *)vo, vfz); /* skip while testing - * TODO: also fix, this modifies only the first region. Create new + * \todo: also fix, this modifies only the first region. Create new * function? * pm_t paddr = 0; @@ -74,7 +74,7 @@ static void __map_exec(struct tcb *t, vm_t bin, uint8_t ei_c, vm_t phstart, static vm_t __map_dyn(struct tcb *t, vm_t bin, uint8_t ei_c, vm_t phstart, size_t phnum, size_t phsize) { - /* TODO: this path should only be taken when no PT_INTERP is defined, as + /* \todo: this path should only be taken when no PT_INTERP is defined, as * making sure ld is loaded should be done in userspace. Maybe a bit * hacky, I know.*/ } -- cgit v1.3