]> Cypherpunks repositories - gostls13.git/commit
cmd/nm: reimplement in Go
authorRuss Cox <rsc@golang.org>
Mon, 16 Dec 2013 17:52:11 +0000 (12:52 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 16 Dec 2013 17:52:11 +0000 (12:52 -0500)
commit500547f28baf67923d77fb4d88c3744b335d4ad0
treee8b0f16abc0e4e78b25284f7c6501570140d6e00
parenta9f6db58cea016957391f3ca9d36247177895e96
cmd/nm: reimplement in Go

The immediate goal is to support the new object file format,
which libmach (nm's support library) does not understand.
Rather than add code to libmach or reengineer liblink to
support this new use, just write it in Go.

The C version of nm reads the Plan 9 symbol table stored in
Go binaries, now otherwise unused.

This reimplementation uses the standard symbol table for
the corresponding file format instead, bringing us one step
closer to removing the Plan 9 symbol table from Go binaries.

Tell cmd/dist not to build cmd/nm anymore.
Tell cmd/go to install cmd/nm in the tool directory.

R=golang-dev, r, iant, alex.brainman
CC=golang-dev
https://golang.org/cl/40600043
src/cmd/dist/build.c
src/cmd/go/pkg.go
src/cmd/nm/Makefile [deleted file]
src/cmd/nm/doc.go
src/cmd/nm/elf.go [new file with mode: 0644]
src/cmd/nm/goobj.go [new file with mode: 0644]
src/cmd/nm/macho.go [new file with mode: 0644]
src/cmd/nm/nm.c [deleted file]
src/cmd/nm/nm.go [new file with mode: 0644]
src/cmd/nm/pe.go [new file with mode: 0644]