]> Cypherpunks repositories - gostls13.git/commit
runtime: set r12 to sigpanic before jumping to it in sighandler
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Tue, 1 Dec 2015 01:47:22 +0000 (14:47 +1300)
committerMichael Hudson-Doyle <michael.hudson@canonical.com>
Tue, 1 Dec 2015 04:51:35 +0000 (04:51 +0000)
commitf000523018e80471f51e29cae117831157d8dfb8
treea952e6f0303cc4bb8730fcf5010681e8a3768996
parent7305b55e98a6ff747491f39e72bfd1195f1161da
runtime: set r12 to sigpanic before jumping to it in sighandler

The ppc64le shared library ABI demands that r12 is set to a function's global
entrypoint before jumping to the global entrypoint. Not doing so means that
handling signals that usually panic actually crashes (and so, e.g. can't be
recovered). Fixes several failures of "cd test; go run run.go -linkshared".

Change-Id: Ia4d0da4c13efda68340d38c045a52b37c2f90796
Reviewed-on: https://go-review.googlesource.com/17280
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/signal_linux_ppc64x.go
src/runtime/signal_ppc64x.go