diff options
author | Rob Landley <rob@landley.net> | 2013-04-26 01:46:03 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2013-04-26 01:46:03 -0500 |
commit | 7d4d0a010926ed98f10c410eb1d6549d4131ec18 (patch) | |
tree | 5de8e8af8640f5e70d8d78fd201aefe0195c8f36 /scripts/findglobals.sh | |
parent | d8bd2214070075d1664e3abea8ace297386cc5f9 (diff) | |
download | toybox-7d4d0a010926ed98f10c410eb1d6549d4131ec18.tar.gz |
Quick sniff test to find leaked global variables.
Diffstat (limited to 'scripts/findglobals.sh')
-rwxr-xr-x | scripts/findglobals.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/findglobals.sh b/scripts/findglobals.sh new file mode 100755 index 00000000..2c63164b --- /dev/null +++ b/scripts/findglobals.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +# Quick and dirty check to see if anybody's leaked global variables. +# We should have this, toy_list, toybuf, and toys. + +nm toybox_unstripped | grep '[0-9A-Fa-f]* [BCDGRS]' | cut -d ' ' -f 3 |