1
0
mirror of https://github.com/golang/go synced 2024-11-06 15:36:24 -07:00
go/src/debug
Heschi Kreinick 2036f16247 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>
2018-06-19 22:13:51 +00:00
..
dwarf
elf debug/elf,macho,pe: support compressed DWARF 2018-06-19 22:13:51 +00:00
gosym debug/gosym: intern LineTable strings 2018-04-13 19:52:07 +00:00
macho debug/elf,macho,pe: support compressed DWARF 2018-06-19 22:13:51 +00:00
pe debug/elf,macho,pe: support compressed DWARF 2018-06-19 22:13:51 +00:00
plan9obj