2019-05-09 22:56:39 +00: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 16:56:39 +00:00
|
|
|
what=$(LD_LIBRARY_PATH= file -L "$1")
|
2019-06-27 20:50:31 +00:00
|
|
|
case "$what" in
|
2019-05-09 22:56:39 +00:00
|
|
|
*32-bit*)
|
|
|
|
linker --list "$1"
|
|
|
|
;;
|
|
|
|
*64-bit*)
|
|
|
|
linker64 --list "$1"
|
|
|
|
;;
|
|
|
|
*)
|
2019-06-27 20:50:31 +00:00
|
|
|
error "$what"
|
2019-05-09 22:56:39 +00:00
|
|
|
;;
|
|
|
|
esac
|