]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: fix buglet in compilationUnitByStartPC
authorThan McIntosh <thanm@google.com>
Tue, 10 Mar 2020 14:27:13 +0000 (10:27 -0400)
committerThan McIntosh <thanm@google.com>
Tue, 10 Mar 2020 17:19:18 +0000 (17:19 +0000)
commit29c5291f03c64d54c1ed643f1273acc507ddd6cc
tree1fd5884d55a92f57a65c974800566a6004e0fcbb
parent69d9664f18803b01927f27b607fa565301f7873e
[dev.link] cmd/link: fix buglet in compilationUnitByStartPC

The methods of compilationUnitByStartPC (used in DWARF generation)
were looking at comp unit sym.Symbols instead of loader.Sym's, which
will not be viable once the wavefront reaches DWARF gen phase two.
Rewrite the methods to use only loader.Sym.

Change-Id: I0f520399d5458079c48cff1d882ef879934f8e92
Reviewed-on: https://go-review.googlesource.com/c/go/+/222759
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/link/internal/ld/dwarf2.go