]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link: explain how to find the name to use for -X
authorIan Lance Taylor <iant@golang.org>
Thu, 8 Dec 2016 23:57:48 +0000 (15:57 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 14 Dec 2016 00:11:37 +0000 (00:11 +0000)
Doc change only.

Fixes #18246.

Change-Id: I2c7b181bcec81e124d30702f6fac5aa43bb57c04
Reviewed-on: https://go-review.googlesource.com/34230
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/link/doc.go

index 16fddf2345dfb9815753d478c57e0ce82a9c6644..78d25c62454c3b31db664141bf4da6741b72c1c3 100644 (file)
@@ -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