cmd/link: document limitation of -X

Fixes #26042

Change-Id: Ica16f14a65c03659a19926852cca5e554c99baf1
Reviewed-on: https://go-review.googlesource.com/120935
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
LE Manh Cuong 2018-06-26 13:48:05 +07:00 committed by Ian Lance Taylor
parent f040e439cb
commit 6dd789fdea
2 changed files with 4 additions and 1 deletions

View file

@ -828,6 +828,7 @@ func addstrdata1(ctxt *Link, arg string) {
strdata[name] = value
}
// addstrdata sets the initial value of the string variable name to value.
func addstrdata(ctxt *Link, name, value string) {
s := ctxt.Syms.ROLookup(name, 0)
if s == nil || s.Gotype == nil {