From: Ian Lance Taylor Date: Thu, 8 Dec 2016 23:57:48 +0000 (-0800) Subject: cmd/link: explain how to find the name to use for -X X-Git-Tag: go1.8beta2~28 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4284edb999716c408c99e9b5dc56734c31e4dcd5;p=gostls13.git 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 --- 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