aboutsummaryrefslogtreecommitdiff
path: root/scripts/find_stray_communal_vars
blob: 9f999d70523ca83f695f15469f1f21667aabdc50 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

# Communal variables are elusize, then don't show in size output!
# This script will show all communals in *.o, sorted by size

find -name '*.o' \
| while read name; do
    b=`basename "$name"`
    nm "$name" | sed "s/^/$b: /"
done | grep -i ' c ' | sort -k2