]> Cypherpunks repositories - gostls13.git/commit
cmd/link/internal/wasm: do not generate more than 100000 data segments
authorRichard Musiol <mail@richard-musiol.de>
Sun, 24 Mar 2019 17:21:11 +0000 (18:21 +0100)
committerRichard Musiol <neelance@gmail.com>
Mon, 25 Mar 2019 07:54:44 +0000 (07:54 +0000)
commitfb9b818bbd2273579ea09f71017ee42bbc91a3b3
tree5c15e4c78a235b999afcae98e901f62b181512ac
parent56e1614c47cca7dc76b435f485fe86fe088d5127
cmd/link/internal/wasm: do not generate more than 100000 data segments

Some WebAssembly runtimes (e.g. Node.js) fail to load a wasm binary if
it has more than 100000 data segments. Do not skip zero regions any more
if the limit was reached.

Change-Id: I14c4c2aba142d1d2b887bce6d03b8c1c1746c5ec
Reviewed-on: https://go-review.googlesource.com/c/go/+/168884
Run-TryBot: Richard Musiol <neelance@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/link/internal/wasm/asm.go