#!/bin/csh -f # # File: libdump # # Purpose: This shell script dumps symbol tables for all .so's in # the given/current directory. # # Usage: libdump [path] # # Author: Roger Brown, P.E. (r.c.brown@ieee.org) # # Date: 20.MAR.1997 # if ("$1" != "") then echo "Processing directory: $1"; \ cd $1 endif # foreach file ( `/bin/ls lib*.so` ) if ( -f $file ) then echo "- Processing: $file\c"; \ elfdump -t -C $file | /sbin/grep -v UNDEF | /sbin/grep FUNC | awk '{ print $8 $9 }' | sort >`echo $file | sed 's/\.so//'`.func; \ elfdump -t -C $file | /sbin/grep -v UNDEF | /sbin/grep OBJECT | /sbin/grep -v __vtbl | awk '{ print $8 $9 }' | sort >`echo $file | sed 's/\.so//'`.objs; \ echo "."; \ endif end echo "\ndone."