#include <dlfcn.h> int dladdr(void *address, Dl_info_t *dlip);
int dladdr1(void *address, Dl_info_t *dlip, void **info, int
flags); The dladdr() and dladdr1() functions determine if the
specified address is located within one of the mapped objects
that make up the current applications address space. An address
is deemed to fall within a mapped object when it is between the
base address, and the _end address of that object. See NOTES. If
a mapped object fits this criteria, the symbol table made
available to the runtime linker is searched to locate the
nearest symbol to the specified address. The nearest symbol is
one that has a value less than or equal to the required address.
The Dl_info_t structure must be preallocated by the user. The
structure members are filled in by dladdr(), based on the
specified address. The Dl_info_t structure includes the
following members: const char *dli_fname; void *dli_fbase; const
char *dli_sname; void *dli_saddr; The Dl_info_t members provide
the following information. Contain