mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
304 B
15 lines
304 B
#define _GNU_SOURCE
|
|
#include <dlfcn.h>
|
|
#include "dynlink.h"
|
|
#include "libc.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;
|
|
}
|
|
|