blob: b69c47fa0544f9e946d6e96092d563b3698e5137 [file]
#!/bin/bash
# Quick and dirty check to see if anybody's leaked global variables.
# We should have this, toy_list, toybuf, libbuf, toys, and toybox_version.
nm --size-sort generated/unstripped/toybox | grep '[0-9A-Fa-f]* [BCDGRS]' | \
grep -v GLIBC | while read a b c; do printf '%s %d\t%s\n' $b 0x$a $c; done | \
sort -k2,2n