Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cross compiler ldd

I have created a cross compiled arm executable. I want to find the library dependency of the executable. I am using ubuntu natty and installed arm-linux-gnueabi tool chain, which does not contain ldd. Is there a tool available to view arm executables library dependancy in linux.

like image 899
Talespin_Kit Avatar asked May 27 '11 09:05

Talespin_Kit


2 Answers

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:" 
like image 157
stegre Avatar answered Sep 20 '22 14:09

stegre


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 
like image 42
Maus Avatar answered Sep 19 '22 14:09

Maus