android_external_toybox/scripts/probes/findglobals

9 lines
331 B
Plaintext
Raw Permalink Normal View History

#!/bin/bash
# Quick and dirty check to see if anybody's leaked global variables.
2023-12-27 04:05:34 -08:00
# We should have this, toy_list, toybuf, libbuf, toys, and toybox_version.
nm --size-sort generated/unstripped/toybox | grep '[0-9A-Fa-f]* [BCDGRS]' | \
2023-12-27 04:05:34 -08:00
grep -v GLIBC | while read a b c; do printf '%s %d\t%s\n' $b 0x$a $c; done | \
sort -k2,2n