]> Cypherpunks.ru repositories - gostls13.git/commit
debug/elf: support zstd compression
authorIan Lance Taylor <iant@golang.org>
Fri, 3 Mar 2023 22:29:44 +0000 (14:29 -0800)
committerGopher Robot <gobot@golang.org>
Tue, 18 Apr 2023 20:34:36 +0000 (20:34 +0000)
commit48a1dcb92778a349e13bcb8be10a40047f0cf7d1
tree6e708f1dab53c571657621cfd925d2d4f1431fb1
parent73ee0fcf375c12e52997870125dbbac7aad96284
debug/elf: support zstd compression

Test cases added to debug/dwarf because that is where it matters in practice.

The new test binary line-gcc-zstd.elf built with

    gcc -g -no-pie -Wl,--compress-debug-sections=zstd line[12].c

using

    gcc (Debian 12.2.0-10) 12.2.0

with a development version of the GNU binutils.

Fixes #55107

Change-Id: I48507c96902e1f83a174e5647b5cc403d965b52b
Reviewed-on: https://go-review.googlesource.com/c/go/+/473256
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
api/next/55107.txt [new file with mode: 0644]
src/cmd/dist/buildtool.go
src/debug/dwarf/entry_test.go
src/debug/dwarf/line_test.go
src/debug/dwarf/testdata/line-gcc-zstd.elf [new file with mode: 0644]
src/debug/elf/elf.go
src/debug/elf/elf_test.go
src/debug/elf/file.go
src/go/build/deps_test.go