binutils: better ldd (#7342)

This commit is contained in:
Lucy Phipps 2021-08-17 07:40:52 +01:00 committed by GitHub
parent dc10003317
commit a666810f05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Collection of binary tools, the main ones being ld, the
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2.37
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/binutils/binutils-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=820d9724f020a3e69cb337893a0b63c2db161dadcb0e06fc11dc29eb1e84a32c
TERMUX_PKG_DEPENDS="libc++, zlib"

View File

@ -1,3 +1,7 @@
#!/bin/sh
objdump -p "$@" | grep NEEDED | cut -d ' ' -f 18
case $# in
0) echo 'usage: ldd FILE...';;
1) objdump -p -- "$@" | grep NEEDED | cut -d' ' -f18;;
*) objdump -p -- "$@" | grep 'NEEDED\|file format' | cut -d' ' -f1,18
esac