TEXT 42
Check-for-armv4 Guest on 10th February 2021 12:49:50 AM
  1. #!/bin/sh
  2. found=0
  3. for binary in "[email protected]"; do
  4.     if [ "$(file "$binary" | grep ELF)" = "" ]; then
  5.       continue
  6.     fi
  7.     objdump -d "$binary" | grep -E "[^a-z](blx|clz|pld|smla|qadd|qdadd|qdsub|qsub|strd|ldrd)"
  8.     ret=$?
  9.     if [ "$ret" = "0" ]; then
  10.       found=1
  11.     fi
  12. done
  13.  
  14. if [ "$found" != "0" ]; then
  15.     return 0
  16. else
  17.     return 1
  18. fi

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.