Skip to content

Instantly share code, notes, and snippets.

@Und3rf10w
Created August 23, 2018 15:29
Show Gist options
  • Save Und3rf10w/eac25f44a91f7f48860831fb797b5f49 to your computer and use it in GitHub Desktop.
Save Und3rf10w/eac25f44a91f7f48860831fb797b5f49 to your computer and use it in GitHub Desktop.
Function to pipe into from objdump that will dump just a given function name
objdumpfunc() {
funcname="$1"
sed "/<$funcname>:/,/^\$/!d"
}
# objdump -M intel -M hex -j .text -D a.out | objdumpfunc main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment