diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-12-23 19:18:07 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-12-23 19:18:07 +0200 |
| commit | a64f3588ff5da7f148659ccb0eff844ccfb57088 (patch) | |
| tree | e7f02e67ba4e9f7c0ca8608addda4bacab09b7a4 /common/elf.c | |
| parent | f2300b433e152968a0fcabd79fb9d0f5fda6bca3 (diff) | |
| download | kmi-a64f3588ff5da7f148659ccb0eff844ccfb57088.tar.gz kmi-a64f3588ff5da7f148659ccb0eff844ccfb57088.zip | |
Fixups to four previous commits
+ Christ, I'm shit at git etiquette
Diffstat (limited to 'common/elf.c')
| -rw-r--r-- | common/elf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/elf.c b/common/elf.c index 83411e9..c6a37e0 100644 --- a/common/elf.c +++ b/common/elf.c @@ -5,5 +5,8 @@ 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 */ + /* oh yeah, this only works for DYN objects, fuck */ + /* eh, fuck it, I'll fix this later, today has been a decently + * productive day as is */ return ((vm_t)e->e_entry) + bin; } |
