aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/runtime/stubs2.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/runtime/stubs2.go')
-rw-r--r--libgo/go/runtime/stubs2.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/libgo/go/runtime/stubs2.go b/libgo/go/runtime/stubs2.go
index 1cb910c..dcbbffa 100644
--- a/libgo/go/runtime/stubs2.go
+++ b/libgo/go/runtime/stubs2.go
@@ -6,7 +6,6 @@
// +build !windows
// +build !nacl
// +build !js
-// +build !darwin
package runtime
@@ -32,3 +31,6 @@ func exitThread(wait *uint32) {
// This is never used by gccgo.
throw("exitThread")
}
+
+// So that the C initialization code can call osinit.
+//go:linkname osinit runtime.osinit