summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autodeps/linux.prov2
1 files changed, 1 insertions, 1 deletions
diff --git a/autodeps/linux.prov b/autodeps/linux.prov
index d82091bf0..d59231dce 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