]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: save LR after decrementing SP on darwin
authorCherry Zhang <cherryyz@google.com>
Mon, 11 Nov 2019 04:48:56 +0000 (23:48 -0500)
committerCherry Zhang <cherryyz@google.com>
Tue, 12 Nov 2019 22:28:47 +0000 (22:28 +0000)
commit13fb147e60ba17457366630c60b5dbbe2d6a4304
tree33555e266b97e0a921bb56de1d382c0ea3165d8b
parenta56d755f41461bd3a1eb700b0095d82f7a812c1a
cmd/internal/obj/arm64: save LR after decrementing SP on darwin

iOS does not support SA_ONSTACK. The signal handler runs on the
G stack. Any writes below the SP may be clobbered by the signal
handler (even without call injection). So we save LR after
decrementing SP on iOS.

Updates #35439.

Change-Id: Ia6d7a0669e0bcf417b44c031d2e26675c1184165
Reviewed-on: https://go-review.googlesource.com/c/go/+/206418
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/internal/obj/arm64/obj7.go