2015-12-02 12:32:11 +01:00
|
|
|
#!/bin/sh
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2021-08-17 08:40:52 +02:00
|
|
|
case $# in
|
|
|
|
0) echo 'usage: ldd FILE...';;
|
|
|
|
1) objdump -p -- "$@" | grep NEEDED | cut -d' ' -f18;;
|
|
|
|
*) objdump -p -- "$@" | grep 'NEEDED\|file format' | cut -d' ' -f1,18
|
|
|
|
esac
|