From 7d9f09fdbaa7610c4a63214470d253006f6b567a Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Fri, 21 Nov 2014 18:15:30 -0500 Subject: [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 --- src/runtime/os_android.c | 16 ---------------- src/runtime/os_android.h | 1 - src/runtime/os_android_arm.go | 15 +++++++++++++++ src/runtime/signal_android_386.h | 1 - src/runtime/signal_android_arm.h | 1 - src/runtime/signals_android.h | 1 - 6 files changed, 15 insertions(+), 20 deletions(-) delete mode 100644 src/runtime/os_android.c delete mode 100644 src/runtime/os_android.h create mode 100644 src/runtime/os_android_arm.go delete mode 100644 src/runtime/signal_android_386.h delete mode 100644 src/runtime/signal_android_arm.h delete mode 100644 src/runtime/signals_android.h (limited to 'src') diff --git a/src/runtime/os_android.c b/src/runtime/os_android.c deleted file mode 100644 index 5805f6871..000000000 --- a/src/runtime/os_android.c +++ /dev/null @@ -1,16 +0,0 @@ -// 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 golang.org/x/mobile/app. - -void _rt0_arm_linux1(); -#pragma cgo_export_static _rt0_arm_linux1 -#pragma cgo_export_dynamic _rt0_arm_linux1 diff --git a/src/runtime/os_android.h b/src/runtime/os_android.h deleted file mode 100644 index c7c1098e8..000000000 --- a/src/runtime/os_android.h +++ /dev/null @@ -1 +0,0 @@ -#include "os_linux.h" 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 diff --git a/src/runtime/signal_android_386.h b/src/runtime/signal_android_386.h deleted file mode 100644 index 2a1bb4b3e..000000000 --- a/src/runtime/signal_android_386.h +++ /dev/null @@ -1 +0,0 @@ -#include "signal_linux_386.h" diff --git a/src/runtime/signal_android_arm.h b/src/runtime/signal_android_arm.h deleted file mode 100644 index 8a05e21e5..000000000 --- a/src/runtime/signal_android_arm.h +++ /dev/null @@ -1 +0,0 @@ -#include "signal_linux_arm.h" diff --git a/src/runtime/signals_android.h b/src/runtime/signals_android.h deleted file mode 100644 index 5140d8a18..000000000 --- a/src/runtime/signals_android.h +++ /dev/null @@ -1 +0,0 @@ -#include "signals_linux.h" -- cgit v1.2.1