[packages/lesspipe] *.so: display DT_NEEDED and SONAME info
glen
glen at pld-linux.org
Tue Oct 7 18:49:21 CEST 2014
commit a5675c423017fc6aace7149acaf0c65f8b5063ea
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Oct 7 19:49:12 2014 +0300
*.so: display DT_NEEDED and SONAME info
lesspipe.sh | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/lesspipe.sh b/lesspipe.sh
index 8d233a1..bdb327d 100755
--- a/lesspipe.sh
+++ b/lesspipe.sh
@@ -78,6 +78,14 @@ initrd() {
return 0
}
+# display library info
+# DT_NEEDED, SONAME etc
+library_info() {
+ local file="$1"
+
+ objdump -p "$file"
+}
+
lesspipe() {
case "$1" in
# possible initrd images
@@ -117,6 +125,7 @@ lesspipe() {
*.p7s) openssl pkcs7 -noout -text -in "$1" -print_certs -inform DER;;
# gnupg armored files
*.asc) gpg --homedir=/dev/null "$1" ;;
+ *.so) library_info "$1" ;;
# Possible manual pages
*.1|*.2|*.3|*.4|*.5|*.6|*.7|*.8|*.9|*.l|*.n|*.man)
FILE=$(file -L "$1") # groff src
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lesspipe.git/commitdiff/a5675c423017fc6aace7149acaf0c65f8b5063ea
More information about the pld-cvs-commit
mailing list