termux-packages/packages/binutils/ldd
2021-08-17 07:40:52 +01:00

8 lines
186 B
Bash
Executable File

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