go/src/debug/elf
Austin Clements e1544d3bb6 dwbug/elf: support old-style compressed DWARF
GCC and LLVM support zlib-compressing DWARF debug sections (and
there's some evidence that this may be happening by default in some
circumstances now).

Add support for reading compressed DWARF sections. Since ELF
relocations apply to the decompressed data, decompression is done
before applying relocations. Since relcations are applied by
debug/elf, decompression must also be handled there.

Note that this is different from compressed ELF sections, which is a
more general mechanism used by very recent versions of GCC.

Updates #11773.

Change-Id: I3f4bf1b04d0802cc1e8fcb7c2a5fcf6c467c5089
Reviewed-on: https://go-review.googlesource.com/17340
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
2015-12-03 20:53:04 +00:00
..
testdata dwbug/elf: support old-style compressed DWARF 2015-12-03 20:53:04 +00:00
elf.go debug/elf: added MIPS ELF relocations 2015-11-12 04:50:32 +00:00
elf_test.go
file.go dwbug/elf: support old-style compressed DWARF 2015-12-03 20:53:04 +00:00
file_test.go dwbug/elf: support old-style compressed DWARF 2015-12-03 20:53:04 +00:00
symbols_test.go