aboutsummaryrefslogtreecommitdiff
path: root/test/linkx.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2014-09-28 08:27:05 -0700
committerIan Lance Taylor <iant@golang.org>2014-09-28 08:27:05 -0700
commitf6fc14094a476d2e23722f124cfcd8204c2659b0 (patch)
tree875f21415f04acde2038d270833b43b5574725e3 /test/linkx.go
parent56c4d0a5c63a81de4a0d935337b226d229a44c07 (diff)
downloadgo-f6fc14094a476d2e23722f124cfcd8204c2659b0.tar.gz
go-f6fc14094a476d2e23722f124cfcd8204c2659b0.zip
cmd/ld: don't automatically mark symbols created by -X as reachable
This fixes the bug in which the linker reports "missing Go type information" when a -X option refers to a symbol that is not used. Fixes #8821. LGTM=rsc R=rsc, r CC=golang-codereviews https://golang.org/cl/151000043
Diffstat (limited to 'test/linkx.go')
-rw-r--r--test/linkx.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/linkx.go b/test/linkx.go
index 36d16aec9b..06888a229a 100644
--- a/test/linkx.go
+++ b/test/linkx.go
@@ -1,4 +1,4 @@
-// $G $D/$F.go && $L -X main.tbd hello -X main.overwrite trumped $F.$A && ./$A.out
+// $G $D/$F.go && $L -X main.tbd hello -X main.overwrite trumped -X main.nosuchsymbol neverseen $F.$A && ./$A.out
// NOTE: This test is not run by 'run.go' and so not run by all.bash.
// To run this test you must use the ./run shell script.