Commit 48f2d30d authored by Russ Cox's avatar Russ Cox

cmd/go: fix detection of ELF binaries

Change-Id: I0e6f1a39b3d6b15d05891c8b25ab6644356bde5f
Reviewed-on: https://go-review.googlesource.com/10751Reviewed-by: default avatarRuss Cox <rsc@golang.org>
parent 4b6284a7
...@@ -1166,7 +1166,7 @@ var ( ...@@ -1166,7 +1166,7 @@ var (
goBuildPrefix = []byte("\xff Go build ID: \"") goBuildPrefix = []byte("\xff Go build ID: \"")
goBuildEnd = []byte("\"\n \xff") goBuildEnd = []byte("\"\n \xff")
elfPrefix = []byte("ELF\x7F") elfPrefix = []byte("\x7fELF")
) )
// readBuildIDFromBinary reads the build ID from a binary. // readBuildIDFromBinary reads the build ID from a binary.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment