diff options
| author | David du Colombier <0intro@gmail.com> | 2016-02-27 00:49:08 +0100 |
|---|---|---|
| committer | David du Colombier <0intro@gmail.com> | 2016-02-27 05:13:33 +0000 |
| commit | ccf39a23b17f5b5ed301c0016d520e44310fced3 (patch) | |
| tree | c3ca945303bf26ca208896698ea9c4346a48e282 /src/debug | |
| parent | 31f2ed2cae4df04d9180574f75ec94a80578f8ed (diff) | |
| download | go-ccf39a23b17f5b5ed301c0016d520e44310fced3.tar.xz | |
debug/gosym: fix TestPCLine on Plan 9
Plan 9 doesn't define main, so the INITENTRY
symbol remains with the SXREF type, which leads
Entryvalue to fail on "entry not text: main".
Fixes #14536.
Change-Id: Id9b7d61e5c2202aba3ec9cd52f5b56e0a38f7c47
Reviewed-on: https://go-review.googlesource.com/19973
Run-TryBot: David du Colombier <0intro@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/debug')
| -rw-r--r-- | src/debug/gosym/pclntab_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug/gosym/pclntab_test.go b/src/debug/gosym/pclntab_test.go index 8d4aa547a0..355bb0433e 100644 --- a/src/debug/gosym/pclntab_test.go +++ b/src/debug/gosym/pclntab_test.go @@ -42,7 +42,7 @@ func dotest(t *testing.T) { if err := cmd.Run(); err != nil { t.Fatal(err) } - cmd = exec.Command("go", "tool", "link", "-H", "linux", "-E", "main", + cmd = exec.Command("go", "tool", "link", "-H", "linux", "-o", pclinetestBinary, pclinetestBinary+".o") cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr |
