diff options
author | Hiroshi Ioka <hirochachacha@gmail.com> | 2017-09-16 15:28:14 +0900 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2017-09-21 01:01:44 +0000 |
commit | 589ea93678850ad1e5c1192df5768177c3104937 (patch) | |
tree | a6ba4177df2d16ca506c5e683268a29f4bb3de2b /src/cmd/internal/objfile/plan9obj.go | |
parent | 6a537c1d4718f2804bbad983037b9a6e4b40bc60 (diff) | |
download | go-git-589ea93678850ad1e5c1192df5768177c3104937.tar.gz |
cmd/nm: handle cgo archive
This CL also make cmd/nm accept PE object file.
Fixes #21706
Change-Id: I4a528b7d53da1082e61523ebeba02c4c514a43a7
Reviewed-on: https://go-review.googlesource.com/64890
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/cmd/internal/objfile/plan9obj.go')
-rw-r--r-- | src/cmd/internal/objfile/plan9obj.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/internal/objfile/plan9obj.go b/src/cmd/internal/objfile/plan9obj.go index 3e34f65ae7..da0b345f53 100644 --- a/src/cmd/internal/objfile/plan9obj.go +++ b/src/cmd/internal/objfile/plan9obj.go @@ -11,7 +11,7 @@ import ( "debug/plan9obj" "errors" "fmt" - "os" + "io" "sort" ) @@ -28,7 +28,7 @@ type plan9File struct { plan9 *plan9obj.File } -func openPlan9(r *os.File) (rawFile, error) { +func openPlan9(r io.ReaderAt) (rawFile, error) { f, err := plan9obj.NewFile(r) if err != nil { return nil, err |