From 3c617b6e4bdba36c9327d900ed1d5f1354d4a502 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 26 Jun 2026 23:25:37 -0500 Subject: [PATCH] Allow a name other than toybox to be specified on the command line. --- scripts/probes/findglobals | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/probes/findglobals b/scripts/probes/findglobals index b69c47fa..e6331bb4 100755 --- a/scripts/probes/findglobals +++ b/scripts/probes/findglobals @@ -3,6 +3,6 @@ # 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]' | \ +nm --size-sort generated/unstripped/${1-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 -- 2.39.5