]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: call objabi.PathToPrefix when emitting abstract fn
authorThan McIntosh <thanm@google.com>
Tue, 10 Jul 2018 16:23:31 +0000 (12:23 -0400)
committerThan McIntosh <thanm@google.com>
Tue, 10 Jul 2018 18:54:39 +0000 (18:54 +0000)
commitec88f781c2be341051eda3fc2482210dc318fca7
tree36315f2606b6f22eefe4c45d5a4fe047b779cf7c
parentbe9c994609eace4ef26966e86374685dce4b3413
cmd/compile: call objabi.PathToPrefix when emitting abstract fn

When generating an abstract function DIE, call objabi.PathToPrefix on
the import path so as to be consistent with how the linker handles
import paths. This is intended to resolve another problem with DWARF
inline info generation in which there are multiple inconsistent
versions of an abstract function DIE for a function whose package path
is rewritten/canonicalized by objabi.PathToPrefix.

Fixes #26237

Change-Id: I4b64c090ae43a1ad87f47587a1a71f19bc5fc8e8
Reviewed-on: https://go-review.googlesource.com/123036
Run-TryBot: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/internal/dwarf/dwarf.go
src/cmd/link/internal/ld/dwarf_test.go
src/cmd/link/internal/ld/testdata/issue26237/src/b.dir/b.go [new file with mode: 0644]
src/cmd/link/internal/ld/testdata/issue26237/src/main/main.go [new file with mode: 0644]