use "objdump -p" rather then hacking it
authorewt <devnull@localhost>
Mon, 25 Nov 1996 20:17:57 +0000 (20:17 +0000)
committerewt <devnull@localhost>
Mon, 25 Nov 1996 20:17:57 +0000 (20:17 +0000)
CVS patchset: 1202
CVS date: 1996/11/25 20:17:57

autodeps/linux.prov

index d82091b..d59231d 100644 (file)
@@ -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