Files
rk35xx-android14/bionic/linker/ldd.sh
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

25 lines
374 B
Bash
Executable File

#!/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