Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while IFS= read -rd '' f; do
- chmod +x "$f"
- symbol_file=$f.debug
- echo "stripping $f, putting debug info into $symbol_file"
- objcopy --only-keep-debug "$f" "$symbol_file"
- strip --strip-debug --strip-unneeded "$f"
- objcopy --add-gnu-debuglink="$symbol_file" "$f"
- chmod -x "$symbol_file"
- done < <(find . -type f -name '*release*' \( ! -name '*.*' -o -name '*.so' \) -print0)
Add Comment
Please, Sign In to add comment