Skip to content

Instantly share code, notes, and snippets.

@yunfan
Created September 5, 2018 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yunfan/8148f5c442864ed790d0c91574fbf047 to your computer and use it in GitHub Desktop.
Save yunfan/8148f5c442864ed790d0c91574fbf047 to your computer and use it in GitHub Desktop.
a INS check
#!/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