Ok, thanks.
I found that linux man page for ldd has the following paragraph:
Security
Be aware that in some circumstances (e.g., where the program
specifies an ELF interpreter other than ld-linux.so), some versions
of ldd may attempt to obtain the dependency
2016-07-21 22:52 GMT+03:00 Ilya Kaliman :
> Found on 5.9 amd64, can reproduce on latest amd64 snapshot.
>
> How to reproduce:
>
> mkdir some_dir
> ld some_dir
> this creates a.out (which is strange by itself -
> shouldn't it print the error?)
> ldd a.out
>