blob: 3a0aff91a001d42a676ece3c2ac2c94a48bd7299 [file] [log] [blame]
#!/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"
case `file -L "$1"` in
*32-bit*)
linker --list "$1"
;;
*64-bit*)
linker64 --list "$1"
;;
*)
error "$1: not an ELF file"
;;
esac