termux-packages/packages/binutils/ldd

8 lines
186 B
Plaintext
Raw Normal View History

#!/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