blob: b55f5fe6cfef943a563f0a6d2e07d293e22aa8cd (
plain) (
tree)
|
|
#define _GNU_SOURCE
#include <dlfcn.h>
#include "dynlink.h"
int dlinfo(void *dso, int req, void *res)
{
if (__dl_invalid_handle(dso)) return -1;
if (req != RTLD_DI_LINKMAP) {
__dl_seterr("Unsupported request %d", req);
return -1;
}
*(struct link_map **)res = dso;
return 0;
}
|