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
Showing
src/cmd/nm/Makefile
deleted
100644 → 0
src/cmd/nm/elf.go
0 → 100644
src/cmd/nm/goobj.go
0 → 100644
src/cmd/nm/macho.go
0 → 100644
src/cmd/nm/nm.c
deleted
100644 → 0
src/cmd/nm/nm.go
0 → 100644
src/cmd/nm/pe.go
0 → 100644
Please
register
or
sign in
to comment