find_stray_communal_vars: script which finds communal variables
resize: remove globals var mdev: remove globals var
This commit is contained in:
10
scripts/find_stray_communal_vars
Executable file
10
scripts/find_stray_communal_vars
Executable file
@ -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
|
Reference in New Issue
Block a user