Set block-size for XZ mini-debug-info compression.
This allows the compression to be done on multiple threads and more importantly, it allows libunwindstack to decompress only the needed blocks, which reduces unwind time and memory. Bug: 110133331 Test: verify lazy decompression in libunwindstack Change-Id: Ia3f597928edcbc85acdf05cb5c83ac7fced39148
This commit is contained in:
parent
aef038aac1
commit
412322f2a2
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ do_strip_keep_mini_debug_info() {
|
|||
"${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" --rename-section saved_debug_frame=.debug_frame "${outfile}.mini_debuginfo"
|
||||
"${XZ}" "${outfile}.mini_debuginfo"
|
||||
"${XZ}" --block-size=64k --threads=0 "${outfile}.mini_debuginfo"
|
||||
|
||||
"${CLANG_BIN}/llvm-objcopy" --add-section .gnu_debugdata="${outfile}.mini_debuginfo.xz" "${outfile}.tmp"
|
||||
rm -f "${outfile}.dynsyms" "${outfile}.funcsyms" "${outfile}.keep_symbols" "${outfile}.debug" "${outfile}.mini_debuginfo" "${outfile}.mini_debuginfo.xz"
|
||||
|
|
Loading…
Reference in a new issue