OpenWrt Forum Archive

Topic: ldd on build system

The content of this topic has been archived on 14 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello all!
I'd like to use ldd on my build system (slackware 10.1, i386) to print the dependencies of a MIPS executable. But the ldd (version 2.3.4 GNU libc) that came with slackware just prints the message "not a dynamic executable". I suppose this is caused by the fact that the executable is linked against uClibc. What is the correct way to build a working ldd for my i386 machine?

Greetings,
wtzm

If you just want informations about the executable itself and if it is stripped wether or not, using shared libs ... You can use file, it works quite fine. The i386 ldd will not be available to tell you which dependencies are needed by the mipsel executable of course.

If you need further informations on the binary; mipsel-linux-uclibc-objdump can be used in that purpose.

Thanks a lot, objdump -p did the trick.

The discussion might have continued from here.