cross compiler ldd

You could also use objdump and in order to just dump and search the header fraction of the binary. This may save you some milliseconds...

#!/bin/sh  
arm-none-linux-gnueabi-objdump -x $1 | grep NEEDED

Here is another option, you can set LD_TRACE_LOADED_OBJECTS environment variable to any value, say 1, and then you just run the executable, the output should be its dynamic dependencies.


This is a bit of a kluge, but it's the best solution I could find, and it really works quite well for basic use - just save this script as "arm-none-linux-gnueabi-ldd" with your other cross tools.

#!/bin/sh
arm-none-linux-gnueabi-readelf -a $1 | grep "Shared library:"