Be aware that in some circumstances (e.g., where the program speci‐ fies an ELF interpreter other than
ld-linux.so), some versions of ldd may attempt to obtain the dependency information by attempting to di‐ rectly execute the program, which may lead to the execution of what‐ ever code is defined in the program's ELF interpreter, and perhaps to execution of the program itself. (In glibc versions before 2.27, the upstream ldd implementation did this for example, although most dis‐ tributions provided a modified version that did not.)