Merge "Remove .rustc ELF section from mini-debug-info." am: c29088b727

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1647201

Change-Id: I8cdfde552f2cfcddaebafb80ad896e16af3a8fe7
This commit is contained in:
Treehugger Robot
2021-03-23 11:31:08 +00:00
committed by Automerger Merge Worker

View File

@@ -87,7 +87,7 @@ do_strip_keep_mini_debug_info() {
comm -13 "${outfile}.dynsyms" "${outfile}.funcsyms" > "${outfile}.keep_symbols"
echo >> "${outfile}.keep_symbols" # Ensure that the keep_symbols file is not empty.
"${CROSS_COMPILE}objcopy" --rename-section .debug_frame=saved_debug_frame "${outfile}.debug" "${outfile}.mini_debuginfo"
"${CROSS_COMPILE}objcopy" -S --remove-section .gdb_index --remove-section .comment --keep-symbols="${outfile}.keep_symbols" "${outfile}.mini_debuginfo"
"${CROSS_COMPILE}objcopy" -S --remove-section .gdb_index --remove-section .comment --remove-section .rustc --keep-symbols="${outfile}.keep_symbols" "${outfile}.mini_debuginfo"
"${CROSS_COMPILE}objcopy" --rename-section saved_debug_frame=.debug_frame "${outfile}.mini_debuginfo"
"${XZ}" --block-size=64k --threads=0 "${outfile}.mini_debuginfo"