1#!/system/bin/sh
2
3# Rather than have ldd and ldd64, this script does the right thing depending
4# on the argument.
5
6function error() {
7  echo "$1"
8  exit 1
9}
10
11[ $# -eq 1 ] || error "usage: ldd FILE"
12
13what=$(file -L "$1")
14case "$what" in
15  *32-bit*)
16    linker --list "$1"
17    ;;
18  *64-bit*)
19    linker64 --list "$1"
20    ;;
21  *)
22    error "$what"
23    ;;
24esac
25