]> Cypherpunks repositories - gostls13.git/commit
runtime: align stack pointer in sigfwd
authorBryan C. Mills <bcmills@google.com>
Thu, 27 Oct 2016 21:36:39 +0000 (17:36 -0400)
committerBryan Mills <bcmills@google.com>
Tue, 1 Nov 2016 17:37:43 +0000 (17:37 +0000)
commit8380de416bbb3550de902374b7626e569060a712
treee22a92add24f5a3941b3c42f44e1692829cca660
parentb2c54afe1451f93e1fbbad257a151d8425cd308d
runtime: align stack pointer in sigfwd

sigfwd calls an arbitrary C signal handler function.  The System V ABI
for x86_64 (and the most recent revision of the ABI for i386) requires
the stack to be 16-byte aligned.

Fixes: #17641
Change-Id: I77f53d4a8c29c1b0fe8cfbcc8d5381c4e6f75a6b
Reviewed-on: https://go-review.googlesource.com/32107
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
13 files changed:
misc/cgo/testcarchive/main2.c
src/runtime/sys_darwin_386.s
src/runtime/sys_darwin_amd64.s
src/runtime/sys_dragonfly_amd64.s
src/runtime/sys_freebsd_386.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
src/runtime/sys_solaris_amd64.s