4 comments

[ 2.9 ms ] story [ 21.5 ms ] thread
LD_AUDIT is another one worth knowing about (though I admittedly use it less often than LD_DEBUG) https://man7.org/linux/man-pages/man7/rtld-audit.7.html
Do you know where i can find a list of all LD_XXX environment variables?
Used this once to debug an issue where it turned out unwanted exports in one library A where used to satisfy imports in another library B and thus preventing library A from being unloaded. Fun times.

The ldd command is also essentially just a wrapper script that sets LD_* variables that get the dynamic loader to do all the real work.