CVSROOT:        /cvs
Module name:    src
Changes by:     guent...@cvs.openbsd.org        2023/08/15 00:26:34

Modified files:
        libexec/ld.so  : dlfcn.c loader.c resolve.h util.h 

Log message:
Improve handling of dlopen(RTLD_TRACE) aka ldd, of a library that
is already loaded:
* add a 'trace' argument to _dl_show_objects() and exit the
walk-the-objects loop if you hit that traced object
* in dlopen(), pass the trace object to _dl_show_objects()
* also, invoke _dl_show_objects() + exit if the object was
already opened
* pass NULL to _dl_show_objects() for all the other calls
* oh hey, _dl_tracelib is now superfluous: _dl_show_objects()
should do the walk-the-objects loop only if trace is not NULL.

Problem noted by gnezdo@
ok millert@

Reply via email to