]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/dwarf: update to DWARF4, emit frame_base
authorHeschi Kreinick <heschi@google.com>
Wed, 24 May 2017 21:43:08 +0000 (17:43 -0400)
committerHeschi Kreinick <heschi@google.com>
Fri, 26 May 2017 21:29:21 +0000 (21:29 +0000)
commitb74f01d76f9fa6a38e9828675e21d50ff950be3b
treead8ee8202272caebe37425ad1404ccbd5ed7e23b
parent11ab865d6f42bcbfbe67219bd591518a1e1e8faf
cmd/internal/dwarf: update to DWARF4, emit frame_base

In preparation for CL 41770, upgrade .debug_info to DWARF4, and emit
DW_AT_frame_base on subprograms. This should make no semantic
difference.

Also fix a long-standing bug/inconsistency in puttattr: it didn't
add the addend to ref_addrs. Previously this didn't matter because it
was only used for types, but now it's used for section offsets into
symbols that have multiple entries.

RELNOTE=yes

Change-Id: Ib10654ac92edfa29c5167c44133648151d70cf76
Reviewed-on: https://go-review.googlesource.com/44210
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
src/cmd/internal/dwarf/dwarf.go
src/cmd/internal/dwarf/dwarf_defs.go
src/cmd/link/internal/ld/dwarf.go