aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2016-12-08 15:57:48 -0800
committerIan Lance Taylor <iant@golang.org>2016-12-14 00:11:37 +0000
commit4284edb999716c408c99e9b5dc56734c31e4dcd5 (patch)
tree1985e3d37885893b026d78300e878922358120cd
parent386b66f5bda20d2d0863faad37cf8922c102b588 (diff)
downloadgo-4284edb999716c408c99e9b5dc56734c31e4dcd5.tar.gz
go-4284edb999716c408c99e9b5dc56734c31e4dcd5.zip
cmd/link: explain how to find the name to use for -X
Doc change only. Fixes #18246. Change-Id: I2c7b181bcec81e124d30702f6fac5aa43bb57c04 Reviewed-on: https://go-review.googlesource.com/34230 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-rw-r--r--src/cmd/link/doc.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/link/doc.go b/src/cmd/link/doc.go
index 16fddf2345..78d25c6245 100644
--- a/src/cmd/link/doc.go
+++ b/src/cmd/link/doc.go
@@ -41,6 +41,8 @@ Flags:
Set the value of the string variable in importpath named name to value.
Note that before Go 1.5 this option took two separate arguments.
Now it takes one argument split on the first = sign.
+ To figure out the name to use, run `go tool nm PROGRAM`;
+ usable variables will be tagged "D" or "d".
-buildmode mode
Set build mode (default exe).
-cpuprofile file