]> Cypherpunks repositories - gostls13.git/commit
cmd/link,compile: Provide size for func types
authorKeith Randall <khr@golang.org>
Mon, 14 Aug 2017 22:07:57 +0000 (15:07 -0700)
committerKeith Randall <khr@golang.org>
Mon, 14 Aug 2017 23:53:27 +0000 (23:53 +0000)
commitf4abbc0e61544ba33379ce37597a90fc3b0942d3
tree1a96d01575c826e8269df98f7d1517038494a41f
parent77a9cb9b4c8f13e7b08ae855699146cbddbdd752
cmd/link,compile: Provide size for func types

They are currently not given a size, which makes the DWARF reader
very confused. Particularly things like [4]func() get a size of -4, not 32.

Fixes #21097

Change-Id: I01e754134d82fbbe6567e3c7847a4843792a3776
Reviewed-on: https://go-review.googlesource.com/55551
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/internal/dwarf/dwarf.go
src/cmd/link/internal/ld/dwarf.go
src/cmd/link/internal/ld/dwarf_test.go