busybox/scripts/find_stray_common_vars

11 lines
316 B
Plaintext
Raw Normal View History

#!/bin/sh
2007-08-21 16:24:34 +05:30
# Common variables are elusive, they don't show up in size output!
# This script will show all commons in *.o, sorted by size
2007-09-27 15:38:02 +05:30
find ! -path './scripts/*' -a ! -name built-in.o -a -name '*.o' \
| while read name; do
b=`basename "$name"`
nm "$name" | sed "s/^/$b: /"
done | grep -i ' c ' | sort -k2