4 __attribute__((__visibility__("hidden")))
5 int __dl_invalid_handle(void *);
7 __attribute__((__visibility__("hidden")))
8 void __dl_seterr(const char *, ...);
10 int dlinfo(void *dso, int req, void *res)
12 if (__dl_invalid_handle(dso)) return -1;
13 if (req != RTLD_DI_LINKMAP) {
14 __dl_seterr("Unsupported request %d", req);
17 *(struct link_map **)res = dso;