On Wed, Oct 4, 2017 at 5:59 PM, Nan Xiao <[email protected]> wrote: > > I find the ldd program actually uses "RTLD_TRACE" when calling > "dlopen": > dlhandle = dlopen(buf, RTLD_TRACE); > > While the manual (https://man.openbsd.org/dlopen.3) seems doesn't > provide introduction of RTLD_TRACE. Should OpenBSD manual add > RTLD_TRACE info? >
Nah. This is an internal interface whose behavior we do not provide stability for. Indeed, I know of at least one corner-case bug in its current behavior. We do not generally document the behavior of internal interfaces (though we strive to document even internal syscalls). For example, dlctl(3)'s description is basically just "this exists", which is basically useless... Philip Guenther

