From 9a83d36f5fbc2b7d0f974f8064197f2beee9270f Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 27 Dec 2023 06:05:34 -0600 Subject: [PATCH] Change findglobals output. --- scripts/probes/findglobals | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/probes/findglobals b/scripts/probes/findglobals index c4855dec..b69c47fa 100755 --- a/scripts/probes/findglobals +++ b/scripts/probes/findglobals @@ -1,7 +1,8 @@ #!/bin/bash # Quick and dirty check to see if anybody's leaked global variables. -# We should have this, toy_list, toybuf, and toys. +# We should have this, toy_list, toybuf, libbuf, toys, and toybox_version. nm --size-sort generated/unstripped/toybox | grep '[0-9A-Fa-f]* [BCDGRS]' | \ - grep -v GLIBC + 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.2