2002-07-09 16:24:59 +04:00
|
|
|
/*
|
2005-01-20 20:52:06 +03:00
|
|
|
* Copyright 2005, Haiku Inc. All Rights Reserved.
|
|
|
|
* Distributed under the terms of the MIT license.
|
|
|
|
*
|
|
|
|
* Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
|
|
|
* Distributed under the terms of the NewOS License.
|
|
|
|
*/
|
2002-07-09 16:24:59 +04:00
|
|
|
#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
|
|
|
|
2005-01-20 20:52:06 +03:00
|
|
|
struct kernel_args;
|
|
|
|
|
2003-10-17 18:42:45 +04:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2004-05-11 23:54:10 +04:00
|
|
|
status_t elf_load_user_image(const char *path, struct team *team, int flags, addr_t *_entry);
|
|
|
|
|
|
|
|
// these two might get public one day:
|
|
|
|
image_id load_kernel_add_on(const char *path);
|
|
|
|
status_t unload_kernel_add_on(image_id id);
|
|
|
|
|
2005-08-23 00:35:42 +04:00
|
|
|
status_t elf_debug_lookup_symbol_address(addr_t address, addr_t *_baseAddress,
|
2008-01-19 19:33:03 +03:00
|
|
|
const char **_symbolName, const char **_imageName,
|
|
|
|
bool *_exactMatch);
|
|
|
|
status_t elf_debug_lookup_user_symbol_address(struct team* team, addr_t address,
|
|
|
|
addr_t *_baseAddress, const char **_symbolName,
|
|
|
|
const char **_imageName, bool *_exactMatch);
|
2005-01-20 20:52:06 +03:00
|
|
|
status_t elf_init(struct kernel_args *args);
|
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 */
|