aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/find_stray_communal_vars10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/find_stray_communal_vars b/scripts/find_stray_communal_vars
new file mode 100755
index 000000000..9f999d705
--- /dev/null
+++ b/scripts/find_stray_communal_vars
@@ -0,0 +1,10 @@
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
6find -name '*.o' \
7| while read name; do
8 b=`basename "$name"`
9 nm "$name" | sed "s/^/$b: /"
10done | grep -i ' c ' | sort -k2