haiku/headers/private/kernel/elf.h
Axel Dörfler eaa9132647 Changed some function return codes to return a status_t where appropriate.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-27 11:54:00 +00:00

29 lines
699 B
C
Executable File

/*
** 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>
#include <image.h>
#ifdef __cplusplus
extern "C" {
#endif
status_t elf_load_uspace(const char *path, struct team *t, int flags, addr *entry);
image_id elf_load_kspace(const char *path, const char *sym_prepend);
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);
#ifdef __cplusplus
}
#endif
#endif /* _KERNEL_ELF_H */