2002-07-09 16:24:59 +04:00
|
|
|
/*
|
|
|
|
** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
|
|
|
** Distributed under the terms of the NewOS License.
|
|
|
|
*/
|
|
|
|
#ifndef _KERNEL_ELF_H
|
|
|
|
#define _KERNEL_ELF_H
|
|
|
|
|
2003-10-17 18:42:45 +04:00
|
|
|
|
2002-07-09 16:24:59 +04:00
|
|
|
#include <thread.h>
|
2003-01-13 19:36:25 +03:00
|
|
|
#include <image.h>
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2003-10-17 18:42:45 +04:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2004-04-27 15:54:00 +04:00
|
|
|
status_t elf_load_uspace(const char *path, struct team *t, int flags, addr *entry);
|
2002-07-09 16:24:59 +04:00
|
|
|
image_id elf_load_kspace(const char *path, const char *sym_prepend);
|
2004-04-27 15:54:00 +04:00
|
|
|
status_t elf_unload_kspace(const char *path);
|
|
|
|
addr_t elf_lookup_symbol(image_id id, const char *symbol);
|
|
|
|
status_t elf_lookup_symbol_address(addr address, addr *baseAddress, char *text, size_t length);
|
|
|
|
status_t elf_init(kernel_args *ka);
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2003-10-17 18:42:45 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2002-08-14 01:42:53 +04:00
|
|
|
#endif /* _KERNEL_ELF_H */
|