The only way to access all loaded library is dl_iterate_phdr. But I'm not sure if it provides all necessary information.
Yes it does. The drawback is that it eagerly allocates the TLS block. https://github.com/dawgfoto/druntime/blob/SharedRuntime/src/rt/dso.d#L408 https://github.com/dawgfoto/druntime/blob/SharedRuntime/src/rt/dso.d#L459