]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: export _rt0 for android
authorDavid Crawshaw <david.crawshaw@zentus.com>
Mon, 7 Jul 2014 11:35:39 +0000 (07:35 -0400)
committerDavid Crawshaw <david.crawshaw@zentus.com>
Mon, 7 Jul 2014 11:35:39 +0000 (07:35 -0400)
LGTM=iant, minux
R=golang-codereviews, minux, iant
CC=golang-codereviews
https://golang.org/cl/109470043

src/pkg/runtime/os_android.c [new file with mode: 0644]

diff --git a/src/pkg/runtime/os_android.c b/src/pkg/runtime/os_android.c
new file mode 100644 (file)
index 0000000..58e0dac
--- /dev/null
@@ -0,0 +1,16 @@
+// 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.
+
+#include "runtime.h"
+#include "defs_GOOS_GOARCH.h"
+#include "os_GOOS.h"
+
+// Export the runtime entry point symbol.
+//
+// Used by the app package to start the Go runtime after loading
+// a shared library via JNI. See code.google.com/p/go.mobile/app.
+
+void _rt0_arm_linux1();
+#pragma cgo_export_static _rt0_arm_linux1
+#pragma cgo_export_dynamic _rt0_arm_linux1