]> Cypherpunks repositories - gostls13.git/commit
cmd/addr2line, cmd/nm: factor object reading into cmd/internal/objfile
authorRuss Cox <rsc@golang.org>
Thu, 7 Aug 2014 16:33:06 +0000 (12:33 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 7 Aug 2014 16:33:06 +0000 (12:33 -0400)
commit08033f9816e1e33092c93c050dc34514d8e3e926
treee7442db7fd5cbf52364c7617d437f30374e1117e
parentfad69a7b77a7996b0308bdbcd559b78b32046bb3
cmd/addr2line, cmd/nm: factor object reading into cmd/internal/objfile

To do in another CL: make cmd/objdump use cmd/internal/objfile too.

There is a package placement decision in this CL:
cmd/internal/objfile instead of internal/objfile.
I chose to put internal under cmd to make clear (and enforce)
that no standard library packages should use this
(it's a bit dependency-heavy).

LGTM=r
R=r
CC=golang-codereviews
https://golang.org/cl/123910043
src/cmd/addr2line/main.go
src/cmd/internal/objfile/elf.go [moved from src/cmd/nm/elf.go with 52% similarity]
src/cmd/internal/objfile/goobj.go [moved from src/cmd/nm/goobj.go with 72% similarity]
src/cmd/internal/objfile/macho.go [moved from src/cmd/nm/macho.go with 55% similarity]
src/cmd/internal/objfile/objfile.go [new file with mode: 0644]
src/cmd/internal/objfile/pe.go [new file with mode: 0644]
src/cmd/internal/objfile/plan9obj.go [new file with mode: 0644]
src/cmd/nm/nm.go
src/cmd/nm/nm_test.go
src/cmd/nm/pe.go [deleted file]
src/cmd/nm/plan9obj.go [deleted file]