aboutsummaryrefslogtreecommitdiff
path: root/common/elf.c
blob: 7531bd15b7c647a691abb095343021b66d6f8818 (plain) (blame)
1
2
3
4
5
6
7
8
9
#include <apos/elf.h>
#include <apos/vmem.h>

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;
}