Skip to content

Commit

Permalink
Change findglobals output.
Browse files Browse the repository at this point in the history
  • Loading branch information
landley committed Dec 27, 2023
1 parent 40e73a3 commit 9a83d36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/probes/findglobals
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9a83d36

Please sign in to comment.