libbacktrace: unpack literals into output buffer
commitb1f91819e312d1e92d88a693718d791693cdf26c
authorIan Lance Taylor <iant@golang.org>
Sat, 17 Dec 2022 02:46:06 +0000 (16 18:46 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 17 Dec 2022 02:48:04 +0000 (16 18:48 -0800)
tree52a7ea0ea929623dc951b792bf9a6393ef55ba9d
parent5fb1e67453f40ae6e77b95f7a79a016aec6a1966
libbacktrace: unpack literals into output buffer

* elf.c (elf_fetch_backward_init): New static function.
(ZSTD_TABLE_SIZE): Use huffman scratch space size rather than
literal size.
(ZSTD_TABLE_WORK_LIT_SIZE): Don't define.
(elf_zstd_read_huff): Use elf_fetch_backward_init.
(elf_zstd_read_literals): New static function.
(ZSTD_LIT_RAW, ZSTD_LIT_RLE, ZSTD_LIT_HUFF): Don't define.
(struct elf_zstd_literals): Don't define.
(elf_zstd_literal_output): Remove static function.
(elf_zstd_decompress): Use elf_fetch_backward_init and
elf_zstd_read_literals.  Rewrite literal copying.<
libbacktrace/elf.c