glank

asmdump

Nov 2nd, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.20 KB | None | 0 0
  1. #!/usr/bin/env sh
  2.  
  3. ODFLAGS="-d"
  4. if [ "$1" == "-raw" ]; then
  5.   ODFLAGS+=" -M no-aliases"
  6.   shift
  7. fi
  8.  
  9. TMPFILE="$(mktemp)"
  10. echo "$*" | as -o "$TMPFILE" && objdump $ODFLAGS "$TMPFILE"
  11. rm -f "$TMPFILE"
Add Comment
Please, Sign In to add comment