locate -eb0P file.dll | xargs -r0 ls -ald
xargs will carry out the ls -ald command using the results of the locate as parameters.
The -e switch tells locate to check that files found in the database really exist, and ignore any which don't.
The -b switch tells locate to match just basenames.
The -0 (zero) switch tells locate to generate null delimiters instead of blanks (so it can handle file names which contain blanks)
The -P switch tells locate to list broken symlinks
The -r switch tells xargs to not carry out the command if nothing is passed in - ie when the locate returns nothing.
The -0 switch tells xargs to expect nulls instead of blanks as delimiters
The -a switch tells ls to list even files that begin with "."
The -d switch tells ls to list directories rather than their contents