this is a continuation of How does chroot affect dynamic linking?
My process uses chroot to jail itself. However, I'm having difficulty getting subsequently loaded libraries (e.g. importing a python extension module) to dynamically link to the now-jailed process correctly. Part of the difficulty is not having much insight into what is going on with ld.so. I'm not sure where it is searching and am not sure if things like RPATH and LD_LIBRARY_PATH are relative to inside the chroot jail or outside.
Is there any way to run ld.so in a 'verbose' mode, where it logs what paths are being searched and where if finds requested libraries?