diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-06-09 23:50:14 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-06-09 23:50:14 +0300 |
| commit | da8eeb7695a4803d1d45c8c26c05a51fb1ba1e55 (patch) | |
| tree | 85323057da02893e351426c60f2c5cfd5603b428 /common/elf.c | |
| parent | e30cd339e271b0d16dbecf6c521fa06c3a05e3f1 (diff) | |
| download | kmi-da8eeb7695a4803d1d45c8c26c05a51fb1ba1e55.tar.gz kmi-da8eeb7695a4803d1d45c8c26c05a51fb1ba1e55.zip | |
continue documentation
Diffstat (limited to 'common/elf.c')
| -rw-r--r-- | common/elf.c | 12 |
1 files changed, 6 insertions, 6 deletions
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.*/ } |
