How about the xldd script attached at http://comments.gmane.org/gmane.comp.gcc.cross-compiling/12202 ?