mirror of
https://github.com/golang/go
synced 2024-11-18 00:54:45 -07:00
debug/elf: fix inccorrect value in COMPRESS_ZLIB string name
LLVM recently introduced ZSTD compression for ELF sections. The error message when failing to read the compressed section calls this COMPRESS_ZLIB+2 while it should report it as COMPRESS_ZLIB+1. Change-Id: I869aa69baf0c8c86665475b47343c790587cb39b Reviewed-on: https://go-review.googlesource.com/c/go/+/443035 Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
e9cdca9a24
commit
8826bdd143
@ -735,7 +735,7 @@ const (
|
||||
)
|
||||
|
||||
var compressionStrings = []intName{
|
||||
{0, "COMPRESS_ZLIB"},
|
||||
{1, "COMPRESS_ZLIB"},
|
||||
{0x60000000, "COMPRESS_LOOS"},
|
||||
{0x6fffffff, "COMPRESS_HIOS"},
|
||||
{0x70000000, "COMPRESS_LOPROC"},
|
||||
|
@ -37,6 +37,7 @@ var nameTests = []nameTest{
|
||||
{R_SPARC_GOT22, "R_SPARC_GOT22"},
|
||||
{ET_LOOS + 5, "ET_LOOS+5"},
|
||||
{ProgFlag(0x50), "0x50"},
|
||||
{COMPRESS_ZLIB + 1, "COMPRESS_ZLIB+1"},
|
||||
}
|
||||
|
||||
func TestNames(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user