ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
#include <tamtypes.h>
Go to the source code of this file.
Data Structures | |
struct | erl_loader_t |
struct | symbol_t |
Macros | |
#define | ERL_FLAG_STICKY 1 |
#define | ERL_FLAG_STATIC 2 |
#define | ERL_FLAG_CLEAR 4 |
#define | ERL_DYN_ADDR 0 |
Functions | |
struct erl_record_t * | load_erl_from_mem (u8 *mem, int argc, char **argv) |
struct erl_record_t * | load_erl_from_file (const char *fname, int argc, char **argv) |
struct erl_record_t * | _init_load_erl_from_file (const char *fname, char *erl_id) |
struct erl_record_t * | load_erl_from_mem_to_addr (u8 *mem, u32 addr, int argc, char **argv) |
struct erl_record_t * | load_erl_from_file_to_addr (const char *fname, u32 addr, int argc, char **argv) |
struct erl_record_t * | _init_load_erl_from_file_to_addr (const char *fname, u32 addr, char *erl_id) |
int | unload_erl (struct erl_record_t *erl) |
int | erl_add_global_symbol (const char *symbol, u32 address) |
struct erl_record_t * | find_erl (const char *name) |
struct erl_record_t * | erl_resolve (u32 address) |
struct symbol_t * | erl_find_local_symbol (const char *symbol, struct erl_record_t *erl) |
struct symbol_t * | erl_find_symbol (const char *symbol) |
void | erl_flush_symbols (struct erl_record_t *erl) |
Variables | |
char | _init_erl_prefix [] |
erl_loader_t | _init_load_erl |
The relocatable elf loader/linker.
Definition in file erl.h.
#define ERL_FLAG_STATIC 2 |
struct erl_record_t* _init_load_erl_from_file | ( | const char * | fname, |
char * | erl_id | ||
) |
Definition at line 1012 of file erl.c.
References _init_erl_prefix, erl_id, find_erl(), and load_erl_from_file().
Referenced by _init_load_erl_wrapper_from_file(), and main().
struct erl_record_t* _init_load_erl_from_file_to_addr | ( | const char * | fname, |
u32 | addr, | ||
char * | erl_id | ||
) |
Definition at line 1055 of file erl.c.
References _init_erl_prefix, erl_id, find_erl(), and load_erl_from_file_to_addr().
int erl_add_global_symbol | ( | const char * | symbol, |
u32 | address | ||
) |
Definition at line 574 of file erl.c.
References add_symbol().
Referenced by export_symbols().
struct symbol_t* erl_find_local_symbol | ( | const char * | symbol, |
struct erl_record_t * | erl | ||
) |
Definition at line 427 of file erl.c.
References hfind(), hstuff, and erl_loader_t::symbols.
Referenced by load_erl(), and unload_erl().
struct symbol_t* erl_find_symbol | ( | const char * | symbol | ) |
Definition at line 443 of file erl.c.
References erl_record_root, global_symbols, hfind(), hstuff, and r_find_symbol().
Referenced by add_symbol(), main(), and read_erl().
void erl_flush_symbols | ( | struct erl_record_t * | erl | ) |
Definition at line 1145 of file erl.c.
References destroy_symbol(), hcount, hdel(), hdestroy(), hfirst(), hkey, hstuff, and erl_loader_t::symbols.
Referenced by destroy_erl_record(), and unload_erl().
struct erl_record_t* erl_resolve | ( | u32 | address | ) |
Definition at line 1121 of file erl.c.
References erl_loader_t::bytes, erl_record_root, erl_loader_t::fullsize, and erl_loader_t::next.
struct erl_record_t* find_erl | ( | const char * | name | ) |
Definition at line 1133 of file erl.c.
References erl_record_root, erl_loader_t::name, and erl_loader_t::next.
Referenced by _init_load_erl_from_file(), _init_load_erl_from_file_to_addr(), and r_unload_dependancies().
struct erl_record_t* load_erl_from_file | ( | const char * | fname, |
int | argc, | ||
char ** | argv | ||
) |
Definition at line 1030 of file erl.c.
References ERL_DYN_ADDR, and load_erl().
Referenced by _init_load_erl_from_file().
struct erl_record_t* load_erl_from_file_to_addr | ( | const char * | fname, |
u32 | addr, | ||
int | argc, | ||
char ** | argv | ||
) |
Definition at line 1048 of file erl.c.
References load_erl().
Referenced by _init_load_erl_from_file_to_addr().
struct erl_record_t* load_erl_from_mem | ( | u8 * | mem, |
int | argc, | ||
char ** | argv | ||
) |
Definition at line 1034 of file erl.c.
References ERL_DYN_ADDR, and load_erl().
struct erl_record_t* load_erl_from_mem_to_addr | ( | u8 * | mem, |
u32 | addr, | ||
int | argc, | ||
char ** | argv | ||
) |
Definition at line 1041 of file erl.c.
References load_erl().
int unload_erl | ( | struct erl_record_t * | erl | ) |
Definition at line 1084 of file erl.c.
References erl_loader_t::dependancies, dependancy_root, destroy_dependancy_r(), destroy_erl_record(), dprintf, erl_find_local_symbol(), ERL_FLAG_STICKY, erl_flush_symbols(), erl_loader_t::flags, erl_loader_t::name, dependancy_t::next, dependancy_t::provider, r_unload_dependancies(), and s.
Referenced by load_erl(), and r_unload_dependancies().
|
extern |
Definition at line 281 of file erl.c.
Referenced by _init_load_erl_from_file(), _init_load_erl_from_file_to_addr(), and parse_boot_path().
|
extern |
Definition at line 938 of file erl.c.
Referenced by load_erl().