Category: Linux

How to find shared library dependencies for a executable in Linux

Published on in Category Linux

Finding shared library dependencies of a executable is very simple using readelf tool which comes with compiler. If you want to find the dependent for cross platform then you should use the readelf that came with the toolchain. You will need to prefix the platform tupel with -read elf, example for ARM platform the read elf tool will be like arm-linux-gnueabi-readelf In the below log, NEEDED shows the executable dependent shared library.