binutils: better ldd (#7342)
This commit is contained in:
parent
dc10003317
commit
a666810f05
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user