xref: /haiku/headers/private/kernel/elf.h (revision 7120e97489acbf17d86d3f33e3b2e68974fd4b23)
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 
10 int elf_load_uspace(const char *path, struct team *t, int flags, addr *entry);
11 image_id elf_load_kspace(const char *path, const char *sym_prepend);
12 int elf_unload_kspace( const char *path);
13 addr elf_lookup_symbol(image_id id, const char *symbol);
14 int elf_lookup_symbol_address(addr address, addr *baseAddress, char *text, size_t length);
15 int elf_init(kernel_args *ka);
16 
17 #endif	/* _KERNEL_ELF_H */
18