From: Russ Cox Date: Fri, 5 Jun 2015 13:58:47 +0000 (-0400) Subject: cmd/go: fix detection of ELF binaries X-Git-Tag: go1.5beta1~339 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=48f2d30d4389d57b60afe69cab74a008a2f47047;p=gostls13.git cmd/go: fix detection of ELF binaries Change-Id: I0e6f1a39b3d6b15d05891c8b25ab6644356bde5f Reviewed-on: https://go-review.googlesource.com/10751 Reviewed-by: Russ Cox --- 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.