]> Cypherpunks repositories - gostls13.git/commit
runtime, os/signal: use //go:linkname instead of assembly stubs to get access to...
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Thu, 15 Oct 2015 20:56:07 +0000 (09:56 +1300)
committerMichael Hudson-Doyle <michael.hudson@canonical.com>
Fri, 16 Oct 2015 07:11:04 +0000 (07:11 +0000)
commit0b8d583320b2f6247669ef0bb1ba011054ca1c88
tree4365cd408a3b041be5a5c5ce6e5d43c88651b3b1
parent4c2465d47d8c706832bbc57668680a3ffc4d800f
runtime, os/signal: use //go:linkname instead of assembly stubs to get access to runtime functions

os/signal depends on a few unexported runtime functions. This removes the
assembly stubs it used to get access to these in favour of using
//go:linkname in runtime to make the functions accessible to os/signal.

This is motivated by ppc64le shared libraries, where you cannot BR to a symbol
defined in a shared library (only BL), but it seems like an improvment anyway.

Change-Id: I09361203ce38070bd3f132f6dc5ac212f2dc6f58
Reviewed-on: https://go-review.googlesource.com/15871
Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Minux Ma <minux@golang.org>
Reviewed-by: Dave Cheney <dave@cheney.net>
src/os/signal/sig.s
src/os/signal/signal_unix.go
src/runtime/sigqueue.go
src/runtime/sigqueue_plan9.go