aboutsummaryrefslogtreecommitdiff
path: root/scripts/findglobals.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/findglobals.sh')
-rwxr-xr-xscripts/findglobals.sh6
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