summaryrefslogtreecommitdiff
path: root/src/runtime/os_android_arm.go
diff options
context:
space:
mode:
authorShenghou Ma <minux@golang.org>2014-11-21 18:15:30 -0500
committerShenghou Ma <minux@golang.org>2014-11-21 18:15:30 -0500
commit7d9f09fdbaa7610c4a63214470d253006f6b567a (patch)
tree105127412848f1a36a7f9f50809a44f982662c5d /src/runtime/os_android_arm.go
parent182a9190d718d14b05d0f523d90729478298a292 (diff)
downloadgo-7d9f09fdbaa7610c4a63214470d253006f6b567a.tar.gz
[dev.cc] runtime: migrate Android/ARM port to Go.
I tested building Go itself, but not any of go.mobile tests. LGTM=crawshaw R=crawshaw, rsc CC=golang-codereviews https://codereview.appspot.com/179110043
Diffstat (limited to 'src/runtime/os_android_arm.go')
-rw-r--r--src/runtime/os_android_arm.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/runtime/os_android_arm.go b/src/runtime/os_android_arm.go
new file mode 100644
index 000000000..132832236
--- /dev/null
+++ b/src/runtime/os_android_arm.go
@@ -0,0 +1,15 @@
+// Copyright 2014 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
+
+import _ "unsafe"
+
+// Export the runtime entry point symbol.
+//
+// Used by the app package to start the Go runtime after loading
+// a shared library via JNI. See golang.org/x/mobile/app.
+
+//go:cgo_export_static _rt0_arm_linux1
+//go:cgo_export_dynamic _rt0_arm_linux1