summaryrefslogtreecommitdiff
path: root/src/cmd/nm
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/nm')
-rw-r--r--src/cmd/nm/doc.go6
-rw-r--r--src/cmd/nm/nm.c2
2 files changed, 5 insertions, 3 deletions
diff --git a/src/cmd/nm/doc.go b/src/cmd/nm/doc.go
index c84369a5f..480c1c3dd 100644
--- a/src/cmd/nm/doc.go
+++ b/src/cmd/nm/doc.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build ignore
+
/*
Nm is a version of the Plan 9 nm command. The original is documented at
@@ -11,11 +13,11 @@ Nm is a version of the Plan 9 nm command. The original is documented at
It prints the name list (symbol table) for programs compiled by gc as well as the
Plan 9 C compiler.
-This implementation adds the flag -S, which prints each symbol's size
+This implementation adds the flag -S, which prints each symbol's size
in decimal after its address.
Usage:
go tool nm [-aghnsTu] file
*/
-package documentation
+package main
diff --git a/src/cmd/nm/nm.c b/src/cmd/nm/nm.c
index 845b6c773..668239035 100644
--- a/src/cmd/nm/nm.c
+++ b/src/cmd/nm/nm.c
@@ -43,7 +43,7 @@ enum{
char *errs; /* exit status */
char *filename; /* current file */
-char symname[]="__.SYMDEF"; /* table of contents file name */
+char symname[]="__.GOSYMDEF"; /* table of contents file name */
int multifile; /* processing multiple files */
int aflag;
int gflag;