xref: /haiku/headers/private/kernel/elf.h (revision 81f5654c124bf46fba0fd251f208e2d88d81e1ce)
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 
9 #include <thread.h>
10 #include <image.h>
11 
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 status_t elf_load_user_image(const char *path, struct team *team, int flags, addr_t *_entry);
18 
19 // these two might get public one day:
20 image_id load_kernel_add_on(const char *path);
21 status_t unload_kernel_add_on(image_id id);
22 
23 status_t elf_lookup_symbol_address(addr_t address, addr_t *baseAddress, char *text, size_t length);
24 status_t elf_init(kernel_args *args);
25 
26 #ifdef __cplusplus
27 }
28 #endif
29 
30 #endif	/* _KERNEL_ELF_H */
31