aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-04-26 01:46:03 -0500
committerRob Landley <rob@landley.net>2013-04-26 01:46:03 -0500
commit7d4d0a010926ed98f10c410eb1d6549d4131ec18 (patch)
tree5de8e8af8640f5e70d8d78fd201aefe0195c8f36 /scripts
parentd8bd2214070075d1664e3abea8ace297386cc5f9 (diff)
downloadtoybox-7d4d0a010926ed98f10c410eb1d6549d4131ec18.tar.gz
Quick sniff test to find leaked global variables.
Diffstat (limited to 'scripts')
-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