You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
374 B
25 lines
374 B
4 months ago
|
#!/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"
|
||
|
|
||
|
what=$(LD_LIBRARY_PATH= file -L "$1")
|
||
|
case "$what" in
|
||
|
*32-bit*)
|
||
|
linker --list "$1"
|
||
|
;;
|
||
|
*64-bit*)
|
||
|
linker64 --list "$1"
|
||
|
;;
|
||
|
*)
|
||
|
error "$what"
|
||
|
;;
|
||
|
esac
|