]> Cypherpunks repositories - gostls13.git/commit
runtime: preserve callee-saved C registers in sigtramp
authorBryan C. Mills <bcmills@google.com>
Thu, 15 Dec 2016 22:21:13 +0000 (14:21 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 15 Dec 2016 23:41:06 +0000 (23:41 +0000)
commit29cb72154d3bb3530d8092cc89d35b3ed4f7e9c5
tree709d55025d6e18c828487a53a58070d2656ebc42
parentc1d449c42c6ea3c61f4636d1e9412b660be6f6bd
runtime: preserve callee-saved C registers in sigtramp

This fixes Linux and the *BSD platforms on 386/amd64.

A few OS/arch combinations were already saving registers and/or doing
something that doesn't clearly resemble the SysV C ABI; those have
been left alone.

Fixes #18328.

Change-Id: I6398f6c71020de108fc8b26ca5946f0ba0258667
Reviewed-on: https://go-review.googlesource.com/34501
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
misc/cgo/testsanitizers/tsan9.go
src/runtime/sys_dragonfly_amd64.s
src/runtime/sys_freebsd_amd64.s
src/runtime/sys_linux_386.s
src/runtime/sys_linux_amd64.s
src/runtime/sys_netbsd_386.s
src/runtime/sys_netbsd_amd64.s
src/runtime/sys_openbsd_386.s
src/runtime/sys_openbsd_amd64.s