Re: add 'ldd' to cross-tools ?

From: Luigi Rizzo <rizzo_at_iet.unipi.it>
Date: Wed, 4 Jan 2012 23:58:15 +0100
On Wed, Jan 04, 2012 at 02:30:27PM -0800, Garrett Cooper wrote:
> On Wed, Jan 4, 2012 at 2:29 PM, Luigi Rizzo <rizzo_at_iet.unipi.it> wrote:
...
> >> $ objdump -x `which tar` | awk '$1 == "NEEDED" { print $2 }'
> >> libarchive.so.5
> >> libbz2.so.4
> >> libz.so.6
> >> liblzma.so.5
> >> libbsdxml.so.4
> >> libcrypto.so.6
> >> libc.so.7
> >
> > wonderful, thanks!
> 
>     Np! The only gap with both of these tools is that you have to
> watch out for dl_open'ed binaries as they won't show up in ldd/objdump
> -x. If I could figure out how to detect these with a command line
> tool, I would be set for life :).

and the other thing, i just realized, is that once you locate
the libraries you should run objdump recursively to find
out further dependencies. Perhaps ldd sorts this out by itself ?

cheers
luigi
Received on Wed Jan 04 2012 - 21:41:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:22 UTC