ldd is a shell script that executes the program given as argument, and shouldn't be used with untrusted binaries. The ldd manual page suggests to use the following command using the objdump and grep utilities as alternative:3
"ldd(1) – Linux man page". die.net. Retrieved December 28, 2011. http://linux.die.net/man/1/ldd ↩
"ldd Source Code". stuff.mit.edu. Retrieved March 26, 2014. http://stuff.mit.edu/afs/sipb/project/phone-project/bin/arm-linux-ldd ↩
"ldd(1): print shared library dependencies - Linux man page". linux.die.net. Retrieved 2020-11-18. https://linux.die.net/man/1/ldd ↩