Print the name of the symbol that can't be resolved when using
authorjcs <jcs@openbsd.org>
Thu, 7 Oct 2021 14:47:32 +0000 (14:47 +0000)
committerjcs <jcs@openbsd.org>
Thu, 7 Oct 2021 14:47:32 +0000 (14:47 +0000)
LD_DEBUG

ok mpi, kn

libexec/ld.so/dlfcn.c

index 384b5ea..d0aea80 100644 (file)
@@ -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;
        }