blob: ef9ae2d0e934208538df6a2b2a6db2a34017b4b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
# $OpenBSD: Findrefs,v 1.2 2000/03/01 22:10:11 todd Exp $
# $NetBSD: Findrefs,v 1.2 1995/10/13 16:51:28 gwr 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
|