2019-05-10 00:56:39 +02:00
|
|
|
#!/system/bin/sh
|
|
|
|
|
|
|
|
# Rather than have ldd and ldd64, this script does the right thing depending
|
|
|
|
# on the argument.
|
|
|
|
|
|
|
|
function error() {
|
|
|
|
echo "$1"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
[ $# -eq 1 ] || error "usage: ldd FILE"
|
|
|
|
|
2021-03-02 17:56:39 +01:00
|
|
|
what=$(LD_LIBRARY_PATH= file -L "$1")
|
2019-06-27 22:50:31 +02:00
|
|
|
case "$what" in
|
2019-05-10 00:56:39 +02:00
|
|
|
*32-bit*)
|
|
|
|
linker --list "$1"
|
|
|
|
;;
|
|
|
|
*64-bit*)
|
|
|
|
linker64 --list "$1"
|
|
|
|
;;
|
|
|
|
*)
|
2019-06-27 22:50:31 +02:00
|
|
|
error "$what"
|
2019-05-10 00:56:39 +02:00
|
|
|
;;
|
|
|
|
esac
|