]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm: don't split instructions on NaCl
authorCherry Zhang <cherryyz@google.com>
Wed, 7 Jun 2017 14:00:58 +0000 (10:00 -0400)
committerCherry Zhang <cherryyz@google.com>
Wed, 7 Jun 2017 17:33:46 +0000 (17:33 +0000)
commit0aede73917c89d048211b3731fb19157acfe4431
tree46cba0df2b2dd83acee8705a198f839d29c57e70
parentf939407f34158a79c83e5c1a605861c39f276a44
cmd/internal/obj/arm: don't split instructions on NaCl

We insert guard instructions after each "dangerous" instruction
to make NaCl's validator happy. This happens before asmout. If
in asmout an instruction is split to two dangerous instructions,
but only one guard instruction is inserted, the validation fails.
Therefore don't split instructions on NaCl.

Fixes #20595.

Change-Id: Ie34f209bc7d907d6d16ecef6721f88420981ac01
Reviewed-on: https://go-review.googlesource.com/45021
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/internal/obj/arm/asm5.go