aboutsummaryrefslogtreecommitdiff
path: root/common/elf.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-12-20 12:28:30 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2021-12-20 12:37:55 +0200
commitdc2e2cc9dc9d7790e23dd9a4ccc265d7bb6d76aa (patch)
treeee12863bb4aab536810bbe13638bf21317b37658 /common/elf.c
parent98255910aa82c27d04ba79704086eca2310b3075 (diff)
downloadkmi-dc2e2cc9dc9d7790e23dd9a4ccc265d7bb6d76aa.tar.gz
kmi-dc2e2cc9dc9d7790e23dd9a4ccc265d7bb6d76aa.zip
Added init back
Diffstat (limited to 'common/elf.c')
-rw-r--r--common/elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/elf.c b/common/elf.c
index 7531bd1..83411e9 100644
--- a/common/elf.c
+++ b/common/elf.c
@@ -5,5 +5,5 @@ vm_t bin_entry(vm_t bin)
{
struct elf_header *e = (struct elf_header *)bin;
/* TODO: check that address points to a valid ELF executable */
- return (vm_t)e->e_entry;
+ return ((vm_t)e->e_entry) + bin;
}