Guest User

Untitled

a guest
Jun 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.40 KB | None | 0 0
  1. while IFS= read -rd '' f; do
  2.     chmod +x "$f"
  3.  
  4.     symbol_file=$f.debug
  5.  
  6.     echo "stripping $f, putting debug info into $symbol_file"
  7.  
  8.     objcopy --only-keep-debug "$f" "$symbol_file"
  9.     strip --strip-debug --strip-unneeded "$f"
  10.     objcopy --add-gnu-debuglink="$symbol_file" "$f"
  11.  
  12.     chmod -x "$symbol_file"
  13.  
  14. done < <(find . -type f -name '*release*' \( ! -name '*.*' -o -name '*.so' \) -print0)
Add Comment
Please, Sign In to add comment