diff options
Diffstat (limited to 'common/elf.c')
| -rw-r--r-- | common/elf.c | 2 |
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; } |
