diff options
Diffstat (limited to 'pseudo_wrappers.c')
-rw-r--r-- | pseudo_wrappers.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pseudo_wrappers.c b/pseudo_wrappers.c index 99aabff..cd661b3 100644 --- a/pseudo_wrappers.c +++ b/pseudo_wrappers.c @@ -125,6 +125,7 @@ pseudo_reinit_libpseudo(void) { static void pseudo_init_one_wrapper(pseudo_function *func) { int (*f)(void) = (int (*)(void)) NULL; + Dl_info info; if (*func->real != NULL) { /* already initialized */ @@ -146,6 +147,8 @@ pseudo_init_one_wrapper(pseudo_function *func) { * errors if a function is missing, and that printing output * for these seems unhelpful. so we no longer do that. */ + dladdr(f, &info); + pseudo_debug(PDBGF_WRAPPER, "dlsym(%s, %s) from %s\n", func->name, func->version, info.dli_fname); } void |