2 ms·
Secure - and more useful - replacement: lddtree. Part of "pax-utils" or similar package on some distros. It's actually a shell script wrapper around scanelf (
by eqvinox 5y ago
Secure - and more useful - replacement: lddtree.
Part of "pax-utils" or similar package on some distros. It's actually a shell script wrapper around scanelf (also pax utils), which reads the appropriate bytes from ELF files without just executing the ELF file.
- rkeene2 5y agoI usually just do: objdump -x <binary> | grep NEEDED but this is a great tip !
- colonwqbang 5y agoOften you need to find not only the soname but the actual .so file that is found and linked. This can be affected by environment variables like LD_PRELOAD and LD_LIBRARY_PATH. Unfortunately I don't know of a way to check this without ldd. If somebody knows of a tool that can do this without executing the binary, please share.
- eqvinox 5y agolddtree does handle LD_LIBRARY_PATH. It doesn't care about LD_PRELOAD though.