Initial commit - initial revisions of scripts
[globsym.git] / count_global_symbols.sh
1 #!/bin/zsh
2
3 for i in $(find -name '*.dwo' -a ! -name '*built-in*' -a ! -wholename '*/drivers/*' -a ! -wholename '*/lib/*' ) ; do
4         if [[ ! -e ${i/%.dwo/.mod.c} ]]; then
5                 for symbol in $(nm ${i/%.dwo/.o} | awk '$2 == "T" { print $3; }') ; do
6                         echo "$symbol $i" >> symbols.list
7                 done
8         fi
9 done