2002-07-09 12:24:59 +00: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
|
|
|
|
|
|
|
|
#include <thread.h>
|
2003-01-13 16:36:25 +00:00
|
|
|
#include <image.h>
|
2002-07-09 12:24:59 +00:00
|
|
|
|
2002-08-03 00:41:27 +00:00
|
|
|
int elf_load_uspace(const char *path, struct team *t, int flags, addr *entry);
|
2002-07-09 12:24:59 +00:00
|
|
|
image_id elf_load_kspace(const char *path, const char *sym_prepend);
|
2003-01-13 16:36:25 +00:00
|
|
|
int elf_unload_kspace(const char *path);
|
2002-07-09 12:24:59 +00:00
|
|
|
addr elf_lookup_symbol(image_id id, const char *symbol);
|
2002-08-13 21:42:53 +00:00
|
|
|
int elf_lookup_symbol_address(addr address, addr *baseAddress, char *text, size_t length);
|
2002-07-09 12:24:59 +00:00
|
|
|
int elf_init(kernel_args *ka);
|
|
|
|
|
2002-08-13 21:42:53 +00:00
|
|
|
#endif /* _KERNEL_ELF_H */
|