2002-07-09 16:24:59 +04:00
|
|
|
/*
|
2005-03-14 03:53:59 +03:00
|
|
|
* Copyright 2003-2005, Axel Dörfler, axeld@pinc-software.de.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*
|
|
|
|
* Copyright 2002, Manuel J. Petit. All rights reserved.
|
|
|
|
* Distributed under the terms of the NewOS License.
|
|
|
|
*/
|
2003-01-12 19:51:15 +03:00
|
|
|
#ifndef RUN_TIME_LINKER_H
|
|
|
|
#define RUN_TIME_LINKER_H
|
2002-07-09 16:24:59 +04:00
|
|
|
|
|
|
|
|
|
|
|
#include <user_runtime.h>
|
|
|
|
|
|
|
|
|
2005-03-21 22:11:12 +03:00
|
|
|
int runtime_loader(void *arg);
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2003-01-12 19:51:15 +03:00
|
|
|
status_t unload_program(image_id imageID);
|
|
|
|
image_id load_program(char const *path, void **entry);
|
2005-03-12 03:00:04 +03:00
|
|
|
status_t unload_library(image_id imageID, bool addOn);
|
|
|
|
image_id load_library(char const *path, uint32 flags, bool addOn);
|
2003-01-12 19:51:15 +03:00
|
|
|
status_t get_nth_symbol(image_id imageID, int32 num, char *nameBuffer, int32 *_nameLength,
|
|
|
|
int32 *_type, void **_location);
|
|
|
|
status_t get_symbol(image_id imageID, char const *symbolName, int32 symbolType,
|
|
|
|
void **_location);
|
|
|
|
|
|
|
|
void rldelf_init(struct uspace_program_args const *uspa);
|
|
|
|
void rldexport_init(struct uspace_program_args *uspa);
|
|
|
|
|
|
|
|
// RLD heap
|
2005-03-14 03:53:59 +03:00
|
|
|
void rldheap_init(void);
|
2002-07-09 16:24:59 +04:00
|
|
|
void *rldalloc(size_t);
|
2005-03-14 03:53:59 +03:00
|
|
|
void rldfree(void *p);
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2003-01-12 19:51:15 +03:00
|
|
|
#endif /* RUN_TIME_LINKER_H */
|