9f999d70523ca83f695f15469f1f21667aabdc50
[oweals/busybox.git] / scripts / find_stray_communal_vars
1 #!/bin/sh
2
3 # Communal variables are elusize, then don't show in size output!
4 # This script will show all communals in *.o, sorted by size
5
6 find -name '*.o' \
7 | while read name; do
8     b=`basename "$name"`
9     nm "$name" | sed "s/^/$b: /"
10 done | grep -i ' c ' | sort -k2