]> Cypherpunks repositories - gostls13.git/commit
debug/elf,macho,pe: support compressed DWARF
authorHeschi Kreinick <heschi@google.com>
Tue, 19 Jun 2018 19:41:45 +0000 (15:41 -0400)
committerHeschi Kreinick <heschi@google.com>
Tue, 19 Jun 2018 22:13:51 +0000 (22:13 +0000)
commit2036f16247c6702a95d6c5e876a35c8ef484dbf8
treeea19351688d7dec0d13f199c900f929a7faaac21
parent83515df3f31cc70eab2ea4af77e675cabe1eefd5
debug/elf,macho,pe: support compressed DWARF

Since we're going to start compressing DWARF on Windows and maybe
Darwin, copy the ELF support for .zdebug sections to macho and pe. The
code is almost completely the same across the three.

While I was here I added support for compressed .debug_type sections,
which I presume were overlooked before.

Tests will come in a later CL once we can actually generate compressed
PE/Mach-O binaries, since there's no other good way to get test data.

Updates #25927, #11799

Change-Id: Ie920b6a16e9270bc3df214ce601a263837810376
Reviewed-on: https://go-review.googlesource.com/119815
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/debug/elf/file.go
src/debug/macho/file.go
src/debug/pe/file.go
src/go/build/deps_test.go