From 131f695565fd10bb68234a1edabfa1f523d4ac6e Mon Sep 17 00:00:00 2001 From: ewt Date: Mon, 25 Nov 1996 20:17:57 +0000 Subject: [PATCH] use "objdump -p" rather then hacking it CVS patchset: 1202 CVS date: 1996/11/25 20:17:57 --- autodeps/linux.prov | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autodeps/linux.prov b/autodeps/linux.prov index d82091b..d59231d 100644 --- a/autodeps/linux.prov +++ b/autodeps/linux.prov @@ -6,7 +6,7 @@ filelist=$(grep "\\.so" | grep -v "^/lib/ld.so" | xargs file -L 2>/dev/null | grep "ELF.*shared object" | cut -d: -f1) for f in $filelist; do - soname=$(objdump --raw $f --section=.dynstr 2> /dev/null | tr '\0' '\n' | tail -1) + soname=$(objdump -p $f | awk '/SONAME/ {print $2}') if [ "$soname" != "" ]; then if [ "$soname" != "_end" ]; then -- 2.7.4