mirror of
https://github.com/golang/go
synced 2024-11-18 04:24:47 -07:00
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>
This commit is contained in:
parent
4b6284a7d9
commit
48f2d30d43
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user