From 53b1c3203595579bd2f6c6fb0eea9551c7d7c8f4 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Tue, 16 Jun 2020 21:25:58 +0000 Subject: [PATCH] rtld: Add debug line for dlopen_object(). Sponsored by: The FreeBSD Foundation MFC after: 1 week --- libexec/rtld-elf/rtld.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index c19568bd849a..c6aa795bdb07 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -3438,6 +3438,9 @@ dlopen_object(const char *name, int fd, Obj_Entry *refobj, int lo_flags, RtldLockState mlockstate; int result; + dbg("dlopen_object name \"%s\" fd %d refobj \"%s\" lo_flags %#x mode %#x", + name != NULL ? name : "", fd, refobj == NULL ? "" : + refobj->path, lo_flags, mode); objlist_init(&initlist); if (lockstate == NULL && !(lo_flags & RTLD_LO_EARLY)) {