libdragon
Loading...
Searching...
No Matches
Macros | Functions | Variables
dlfcn.c File Reference

Dynamic linker subsystem. More...

Macros

#define PTR_ROUND_UP(ptr, d)   ((void *)ROUND_UP((uintptr_t)(ptr), (d)))
 Macro to round up pointer.
 
#define PTR_DECODE(base, ptr)   ((void*)(((uint8_t*)(base)) + (uintptr_t)(ptr)))
 Macro to add base to pointer.
 

Functions

void __register_frame_info (void *ptr, void *object)
 Function to register exception frames.
 
void __deregister_frame_info (void *ptr)
 Function to unregister exception frames.
 
void __cxa_finalize (void *dso)
 Function to run atexit destructors for a module.
 
void __dl_insert_module (dl_module_t *module)
 Insert module into module list.
 
void __dl_remove_module (dl_module_t *module)
 Remove module from module list.
 
void * dlopen (const char *filename, int mode)
 Open dynamic library.
 
void * dlsym (void *handle, const char *symbol)
 Grab symbol from loaded dynamic library.
 
int dlclose (void *handle)
 Close loaded dynamic library.
 
int dladdr (const void *addr, Dl_info *info)
 Convert address to symbol.
 
char * dlerror (void)
 Return last error that occurred in dynamic linker.
 

Variables

demangle_func __dl_demangle_func
 Demangler function.
 
module_lookup_func __dl_lookup_module
 Module resolver.
 
dl_module_t__dl_list_head
 Module list head.
 
dl_module_t__dl_list_tail
 Module list tail.
 
size_t __dl_num_loaded_modules
 Number of loaded modules.
 

Detailed Description

Dynamic linker subsystem.