1 #!/bin/sh 2 # $NetBSD: Showsyms,v 1.3 1996/10/09 00:13:36 jtc Exp $ 3 # Small helper to print out symbols in a useful order. 4 5 tf=_tmp$$ 6 7 nm -n rd_bin.syms | egrep -v ' (gcc2|___gnu)_compiled' > $tf 8 9 grep -i ' u ' $tf 10 grep -i ' a ' $tf 11 grep -i ' t ' $tf 12 grep -i ' d ' $tf 13 grep -i ' b ' $tf 14 rm -f $tf 15 16 nm -p rd_bin.syms | grep -i ' c ' 17