diff options
author | Joshua Stein <jcs@cvs.openbsd.org> | 2021-10-07 14:47:33 +0000 |
---|---|---|
committer | Joshua Stein <jcs@cvs.openbsd.org> | 2021-10-07 14:47:33 +0000 |
commit | d82cd7a728079de533986a2f2ebfdd9ec993724c (patch) | |
tree | 3f8512fa8a69a18e2f0a96997d93d28a7e312675 /libexec | |
parent | f4d8b14873a3e0db994757f5deaf7ca844af3d03 (diff) |
Print the name of the symbol that can't be resolved when using
LD_DEBUG
ok mpi, kn
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/ld.so/dlfcn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/ld.so/dlfcn.c b/libexec/ld.so/dlfcn.c index 384b5ea97aa..d0aea8047b8 100644 --- a/libexec/ld.so/dlfcn.c +++ b/libexec/ld.so/dlfcn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dlfcn.c,v 1.107 2021/06/02 07:29:03 semarie Exp $ */ +/* $OpenBSD: dlfcn.c,v 1.108 2021/10/07 14:47:32 jcs Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -190,6 +190,7 @@ dlsym(void *handle, const char *name) sr = _dl_find_symbol(name, flags|SYM_NOWARNNOTFOUND, NULL, object); if (sr.sym == NULL) { + DL_DEB(("dlsym: failed to find symbol %s\n", name)); _dl_errno = DL_NO_SYMBOL; return NULL; } |