diff options
| author | Russ Cox <rsc@golang.org> | 2015-06-05 09:58:47 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2015-06-05 13:59:30 +0000 |
| commit | 48f2d30d4389d57b60afe69cab74a008a2f47047 (patch) | |
| tree | 6c2a2b9dc21c01b88504732364355cf1d0c0f4bc /src | |
| parent | 4b6284a7d918aa5813891bde2874411f29d5b418 (diff) | |
| download | go-48f2d30d4389d57b60afe69cab74a008a2f47047.tar.xz | |
cmd/go: fix detection of ELF binaries
Change-Id: I0e6f1a39b3d6b15d05891c8b25ab6644356bde5f
Reviewed-on: https://go-review.googlesource.com/10751
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/go/pkg.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/go/pkg.go b/src/cmd/go/pkg.go index d2d4da1af9..bc099a8d31 100644 --- a/src/cmd/go/pkg.go +++ b/src/cmd/go/pkg.go @@ -1166,7 +1166,7 @@ var ( goBuildPrefix = []byte("\xff Go build ID: \"") goBuildEnd = []byte("\"\n \xff") - elfPrefix = []byte("ELF\x7F") + elfPrefix = []byte("\x7fELF") ) // readBuildIDFromBinary reads the build ID from a binary. |
