Skip to content

Instantly share code, notes, and snippets.

@non-static
Created February 25, 2020 07:33
Show Gist options
  • Save non-static/f3aa8b2e37c5653652b0c9acd266c42d to your computer and use it in GitHub Desktop.
Save non-static/f3aa8b2e37c5653652b0c9acd266c42d to your computer and use it in GitHub Desktop.
Split binary and symbol for release build
objcopy --only-keep-debug "${tostripfile}" "${debugdir}/${debugfile}"
strip --strip-debug --strip-unneeded "${tostripfile}"
objcopy --add-gnu-debuglink="${debugdir}/${debugfile}" "${tostripfile}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment