From 4284edb999716c408c99e9b5dc56734c31e4dcd5 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 8 Dec 2016 15:57:48 -0800 Subject: [PATCH] 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 --- src/cmd/link/doc.go | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.50.0