diff --git a/scripts/strip.sh b/scripts/strip.sh index 7b360bf5f..d09c187b1 100755 --- a/scripts/strip.sh +++ b/scripts/strip.sh @@ -98,17 +98,9 @@ do_strip_keep_mini_debug_info_linux() { "${CLANG_BIN}/llvm-strip" --strip-all --keep-section=.ARM.attributes --remove-section=.comment "${infile}" -o "${outfile}.tmp" || fail=true if [ -z $fail ]; then - # create_minidebuginfo has issues with compressed debug sections. Just - # decompress them for now using objcopy which understands compressed - # debug sections. - # b/306150780 tracks supporting this directly in create_minidebuginfo - decompressed="${infile}.decompressed" - "${CLANG_BIN}/llvm-objcopy" --decompress-debug-sections \ - "${infile}" "${decompressed}" - - "${CREATE_MINIDEBUGINFO}" "${decompressed}" "${outfile}.mini_debuginfo.xz" + "${CREATE_MINIDEBUGINFO}" "${infile}" "${outfile}.mini_debuginfo.xz" "${CLANG_BIN}/llvm-objcopy" --add-section .gnu_debugdata="${outfile}.mini_debuginfo.xz" "${outfile}.tmp" - rm -f "${outfile}.mini_debuginfo.xz" "${decompressed}" + rm -f "${outfile}.mini_debuginfo.xz" else cp -f "${infile}" "${outfile}.tmp" fi