Created
September 5, 2018 08:27
-
-
Save yunfan/8148f5c442864ed790d0c91574fbf047 to your computer and use it in GitHub Desktop.
a INS check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## require objdump and awk and sed | |
fn=$1 | |
objdump -j .text -S $fn | awk -F ' {2,}' '{print $3}' | sed -n '/^\s\+/!d;s/\s\+\([a-z]\+\).*$/\1/p' | sort | uniq -c | sort -k1 -n | |
## save here in case i would forget oneday |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment