]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/cgo: export _cgo_reginit on ppc64x
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Thu, 3 Sep 2015 20:31:03 +0000 (08:31 +1200)
committerMichael Hudson-Doyle <michael.hudson@canonical.com>
Thu, 29 Oct 2015 00:38:43 +0000 (00:38 +0000)
This is needed to make external linking work.

Change-Id: I4cf7edb4ea318849cab92a697952f8745eed40c4
Reviewed-on: https://go-review.googlesource.com/14237
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/cgo_ppc64x.go [new file with mode: 0644]

diff --git a/src/runtime/cgo_ppc64x.go b/src/runtime/cgo_ppc64x.go
new file mode 100644 (file)
index 0000000..cbc6c41
--- /dev/null
@@ -0,0 +1,12 @@
+// Copyright 2015 The Go Authors.  All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package runtime
+
+// +build ppc64 ppc64le
+
+// crosscall_ppc64 calls into the runtime to set up the registers the
+// Go runtime expects and so the symbol it calls needs to be exported
+// for external linking to work.
+//go:cgo_export_static _cgo_reginit