Guest User

Untitled

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