OpenWrt Forum Archive

Topic: Pointer needed: how do I get ldd?

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

I hope I didn't miss instructions in some obvious place.

Someone will let me know if I did.

You can get it from busybox (for running on the device itself) - just add it to the busybox config.

There is also a version of ldd that comes with uclibc (for running on the build machine - that can be used on libs for another target) If anyone knows how to enable that I would be interested.

ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }

You would have to remove that from /etc/profile

h3sp4wn wrote:

ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }

Actually that's all you need for an ldd; you don't need an ldd binary.

FYI SVN r6735 comes without execute permissions set on /etc/profile.  Is that correct?

The discussion might have continued from here.