• Austin Clements's avatar
    dwbug/elf: support old-style compressed DWARF · e1544d3b
    Austin Clements authored
    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/17340Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    e1544d3b
deps.go 14 KB