From 8537ff8a397aae19dc16ab223a95153304894631 Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Fri, 4 Sep 2015 08:31:03 +1200 Subject: [PATCH] runtime/cgo: export _cgo_reginit on ppc64x This is needed to make external linking work. Change-Id: I4cf7edb4ea318849cab92a697952f8745eed40c4 Reviewed-on: https://go-review.googlesource.com/14237 Reviewed-by: Ian Lance Taylor --- src/runtime/cgo_ppc64x.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/runtime/cgo_ppc64x.go diff --git a/src/runtime/cgo_ppc64x.go b/src/runtime/cgo_ppc64x.go new file mode 100644 index 0000000000..cbc6c41d73 --- /dev/null +++ b/src/runtime/cgo_ppc64x.go @@ -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 -- 2.48.1