]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: add _rt0_arm_android_lib
authorDavid Crawshaw <crawshaw@golang.org>
Mon, 6 Apr 2015 22:43:25 +0000 (18:43 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Mon, 6 Apr 2015 22:54:52 +0000 (22:54 +0000)
At the moment this function does nothing, runtime initialization is
still done in android.c:init_go_runtime.

Fixes #10358

Change-Id: I1d762383ba61efcbcf0bbc7c77895f5c1dbf8968
Reviewed-on: https://go-review.googlesource.com/8510
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
src/runtime/rt0_android_arm.s

index 6b65fb47b15393bee9ac2d33394c393c6b5a5966..ad5cf88baa9809d76bbf49fbb50ae8a3c86d8478 100644 (file)
@@ -9,3 +9,9 @@ TEXT _rt0_arm_android(SB),NOSPLIT,$-4
        MOVW            $4(R13), R1    // argv
        MOVW            $_rt0_arm_linux1(SB), R4
        B               (R4)
+
+// This symbol is called when a shared library is loaded.
+TEXT _rt0_arm_android_lib(SB),NOSPLIT,$0
+       // TODO(crawshaw): initialize runtime.
+       // At the moment this is done in mobile/app/android.c:init_go_runtime
+       RET