summaryrefslogtreecommitdiff
path: root/test
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
commitddb14ec42860a28cc8bec6d3b865cbd083c4e079 (patch)
tree54b33f80126909ad2b0606c2a89ebeb92f710f1f /test
parentba02a044f3aac725d0c04f421348313fa3cb6590 (diff)
downloadgo-ddb14ec42860a28cc8bec6d3b865cbd083c4e079.tar.gz
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 issue 8821. LGTM=rsc R=rsc, r CC=golang-codereviews https://codereview.appspot.com/151000043
Diffstat (limited to 'test')
-rw-r--r--test/linkx.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/linkx.go b/test/linkx.go
index 36d16aec9..06888a229 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.