rtld: output rtld errors into the dbg channel

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2023-09-15 22:26:50 +03:00
parent bbe8195bfa
commit 72d97e1dd9

View file

@ -1073,6 +1073,7 @@ _rtld_error(const char *fmt, ...)
fmt, ap);
va_end(ap);
*lockinfo.dlerror_seen() = 0;
dbg("rtld_error: %s", lockinfo.dlerror_loc());
LD_UTRACE(UTRACE_RTLD_ERROR, NULL, NULL, 0, 0, lockinfo.dlerror_loc());
}