]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal: add wasm magic header
authorAgniva De Sarker <agnivade@yahoo.co.in>
Thu, 7 Jun 2018 07:13:56 +0000 (12:43 +0530)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 7 Jun 2018 14:27:48 +0000 (14:27 +0000)
This is needed when we are re-building to the wasm target.

Fixes #25774

Change-Id: I5dc47bd7e56c8570b8d2485273ef0d10f2feac6f
Reviewed-on: https://go-review.googlesource.com/116915
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/go/internal/work/exec.go

index 1b4d43c46200adba49e3729d1a362d98ad338d84..00ac90d1ebcb9ff429c1b5212511f0966e9882e7 100644 (file)
@@ -1565,6 +1565,7 @@ var objectMagic = [][]byte{
        {0x00, 0x00, 0x01, 0xEB},                  // Plan 9 i386
        {0x00, 0x00, 0x8a, 0x97},                  // Plan 9 amd64
        {0x00, 0x00, 0x06, 0x47},                  // Plan 9 arm
+       {0x00, 0x61, 0x73, 0x6D},                  // WASM
 }
 
 func isObject(s string) bool {