On Fri, Jul 06, 2007 at 04:00:22PM +0200, Miroslaw Dach wrote:
> Dear All,
> 
>       I am using for same time busybox. In the lib directory I have big 
> number of libraries and I wanted to narrow them to the necessary set.
> 
> I have launched the command below to determine the shared libraries the 
> busy box depend on:
> powerpc-405-linux-gnu-readelf -a bin/busybox | grep -i "shared"

You can use any readelf command, not necessarily the one for the target
system.

And you're missing the interpreters. I use:
1. libraries:
 readelf -d $file | sed -ne '/library/s,.*\[\(.*\)\].*,\1,p'
2. interpreter:
 readelf -l $file | sed -ne '/interpreter/{s,^[^/]*/,/,;s,].*,,;p}'

> My lib directory looks like that:
> -rwxr-xr-x    1 root     root      1576651 Jul  6 15:27 libc-2.3.2.so
> -rwxr-xr-x    1 root     root        29422 Jul  6 15:32 libcrypt-2.3.2.so
> lrwxrwxrwx    1 root     root           13 Jul  6 15:32 libcrypt.so -> 
> libcrypt.so.1
> lrwxrwxrwx    1 root     root           17 Jul  6 15:32 libcrypt.so.1 -> 
> libcrypt-2.3.2.so
> -rw-r--r--    1 root     root          193 Jul  6 15:28 libc.so
> lrwxrwxrwx    1 root     root           13 Jul  6 15:28 libc.so.6 -> 
> libc-2.3.2.so
> lrwxrwxrwx    1 root     root           13 Jul  6 15:49 libgcc_s.so -> 
> libgcc_s.so.1
> -rw-r--r--    1 root     root       338539 Jul  6 15:48 libgcc_s.so.1
> -rwxr-xr-x    1 root     root       925590 Jul  6 15:30 libm-2.3.2.so
> lrwxrwxrwx    1 root     root            9 Jul  6 15:31 libm.so -> libm.so.6
> lrwxrwxrwx    1 root     root           13 Jul  6 15:30 libm.so.6 -> 
> libm-2.3.2.so

Yep, no ld-linux.so.2

-- 
lfr
0/0

Attachment: pgp5tOytVTHtV.pgp
Description: PGP signature

_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to