Skip to content

Instantly share code, notes, and snippets.

@niklasad1
Last active August 29, 2017 14:24
Show Gist options
  • Save niklasad1/6ecf49ab95786e21d74ce9b19c88883f to your computer and use it in GitHub Desktop.
Save niklasad1/6ecf49ab95786e21d74ce9b19c88883f to your computer and use it in GitHub Desktop.
strip of debug symbols
$ 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