summaryrefslogtreecommitdiff
path: root/scripts/find_stray_communal_vars
diff options
context:
space:
mode:
authorDenis Vlasenko2007-06-03 22:30:22 +0000
committerDenis Vlasenko2007-06-03 22:30:22 +0000
commit4e5f82c76f08614d0b69f9ec4a8baac303af15f6 (patch)
tree5eb42f026a1fb90ae72b27b7a9b700cd5fee3ab9 /scripts/find_stray_communal_vars
parentdd6e1f0deb6c0423b803137ca650cd85eaa570b3 (diff)
downloadbusybox-4e5f82c76f08614d0b69f9ec4a8baac303af15f6.zip
busybox-4e5f82c76f08614d0b69f9ec4a8baac303af15f6.tar.gz
find_stray_communal_vars: script which finds communal variables
resize: remove globals var mdev: remove globals var
Diffstat (limited to 'scripts/find_stray_communal_vars')
-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 0000000..9f999d7
--- /dev/null
+++ b/scripts/find_stray_communal_vars
@@ -0,0 +1,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