libdragon
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
dlfcn.h File Reference

Dynamic linker subsystem. More...

Go to the source code of this file.

Data Structures

struct  Dl_info
 dl_addr info structure More...
 

Macros

#define RTLD_LAZY   0x0
 Flag for compatibility.
 
#define RTLD_NOW   0x0
 Flag for compatibility.
 
#define RTLD_GLOBAL   0x1
 Export symbols to other dynamic libraries.
 
#define RTLD_LOCAL   0x0
 Don't export symbols to other dynamic libraries.
 
#define RTLD_NODELETE   0x2
 Never unload dynamic library from memory.
 
#define RTLD_NOLOAD   0x4
 Don't load dynamic library to memory if not loaded.
 
#define RTLD_DEFAULT   ((void *)-1)
 Handle for dlsym to find first occurrence of symbol.
 
#define RTLD_NEXT   ((void *)-2)
 Handle for dlsym to find next occurrence of symbol.
 

Functions

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.
 

Detailed Description

Dynamic linker subsystem.


Data Structure Documentation

◆ Dl_info

struct Dl_info

dl_addr info structure

Data Fields
const char * dli_fname Pathname of shared object that contains address.
void * dli_fbase Base address at which shared object is loaded.
const char * dli_sname Name of symbol whose definition overlaps addr.
void * dli_saddr Exact address of symbol named in dli_sname.