Quick sniff test to find leaked global variables.
authorRob Landley <rob@landley.net>
Fri, 26 Apr 2013 06:46:03 +0000 (01:46 -0500)
committerRob Landley <rob@landley.net>
Fri, 26 Apr 2013 06:46:03 +0000 (01:46 -0500)
scripts/findglobals.sh [new file with mode: 0755]

diff --git a/scripts/findglobals.sh b/scripts/findglobals.sh
new file mode 100755 (executable)
index 0000000..2c63164
--- /dev/null
@@ -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