#!/bin/csh -f
#
# |-----------------------------------------------------------|
# | Copyright (c) 1991, 1990 MIPS Computer Systems, Inc.      |
# | All Rights Reserved                                       |
# |-----------------------------------------------------------|
# |          Restricted Rights Legend                         |
# | Use, duplication, or disclosure by the Government is      |
# | subject to restrictions as set forth in                   |
# | subparagraph (c)(1)(ii) of the Rights in Technical        |
# | Data and Computer Software Clause of DFARS 252.227-7013.  |
# |         MIPS Computer Systems, Inc.                       |
# |         950 DeGuigne Avenue                               |
# |         Sunnyvale, California 94088-3650, USA             |
# |-----------------------------------------------------------|
#
# $Header: find_ext,v 1.3.2.1 92/06/24 14:14:46 marker Exp $
set base1=$1:t
nm -Bo $1 | egrep -v ' V | N | U | [a-z] | __|a:x_' | sed -e 's/^.*\.a://' -e 's/:.* /	/' | sort > ext.$base1:r
nm -Bo $1 | egrep -v ' V | N | U | [a-z] |a:x_' | grep "__" | sed -e 's/^.*\.a://' -e 's/:.* /	/' | sort > __ext.$base1:r
