Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _GNU_SOURCE
- #include <link.h>
- #include <dlfcn.h>
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- void *hd = dlopen("libshaderc_shared.so.1", RTLD_NOW);
- if(!hd)
- {
- puts("Failed.");
- return 1;
- }
- char path[4096];
- dlinfo(hd, RTLD_DI_ORIGIN, &path);
- puts(path);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement