summaryrefslogtreecommitdiff
path: root/autodeps
diff options
context:
space:
mode:
authorewt <devnull@localhost>1996-11-25 20:17:57 +0000
committerewt <devnull@localhost>1996-11-25 20:17:57 +0000
commit131f695565fd10bb68234a1edabfa1f523d4ac6e (patch)
treecf9670f610306e1e179297951d723044553986d1 /autodeps
parent1729d08c2af7066a3d7910d17c60dcf37ff4ed5f (diff)
downloadlibrpm-tizen-131f695565fd10bb68234a1edabfa1f523d4ac6e.tar.gz
librpm-tizen-131f695565fd10bb68234a1edabfa1f523d4ac6e.tar.bz2
librpm-tizen-131f695565fd10bb68234a1edabfa1f523d4ac6e.zip
use "objdump -p" rather then hacking it
CVS patchset: 1202 CVS date: 1996/11/25 20:17:57
Diffstat (limited to 'autodeps')
-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