summaryrefslogtreecommitdiff
path: root/distrib/sun2/ramdisk/Findrefs
blob: 188afd88066d500aa29051d5296b1410de8fcfd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# $NetBSD: Findrefs,v 1.1 2001/05/18 00:16:40 fredette Exp $

# Small helper to find out who pulls in X

[ "$1" ] || { echo "$0: match_string" ; exit 1; }

for f in *.lo
do
	nm -p $f | grep "$1" && echo $f
done