Skip to content

Commit f78cd56

Browse files
cmd/link: don't suggest using nm to find -X name
It doesn't work if the package name includes a '.' or a non-ASCII character (or '%', '"', or a control character). See #16710 and CL 31970. Update #18246. Change-Id: I1487f462a3dc7b0016fce3aa1ea6239b226e6e39 Reviewed-on: https://go-review.googlesource.com/34791 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent e776975 commit f78cd56

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/cmd/link/doc.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ Flags:
4141
Set the value of the string variable in importpath named name to value.
4242
Note that before Go 1.5 this option took two separate arguments.
4343
Now it takes one argument split on the first = sign.
44-
To discover which name to use, run `go tool nm PROGRAM`;
45-
usable variables will be tagged "D" or "d".
4644
-buildmode mode
4745
Set build mode (default exe).
4846
-cpuprofile file

0 commit comments

Comments
 (0)