xref: /haiku/headers/private/kernel/elf.h (revision 06b932a49d65e82cdfa7d28a04f48eef6de9ea49)
1 /*
2 ** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
3 ** Distributed under the terms of the NewOS License.
4 */
5 #ifndef _KERNEL_ELF_H
6 #define _KERNEL_ELF_H
7 
8 #include <thread.h>
9 #include <image.h>
10 
11 int elf_load_uspace(const char *path, struct team *t, int flags, addr *entry);
12 image_id elf_load_kspace(const char *path, const char *sym_prepend);
13 int elf_unload_kspace(const char *path);
14 addr elf_lookup_symbol(image_id id, const char *symbol);
15 int elf_lookup_symbol_address(addr address, addr *baseAddress, char *text, size_t length);
16 int elf_init(kernel_args *ka);
17 
18 #endif	/* _KERNEL_ELF_H */
19