Text file src/runtime/rt0_android_arm64.s

     1  // Copyright 2015 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  #include "textflag.h"
     6  
     7  TEXT _rt0_arm64_android(SB),NOSPLIT|NOFRAME,$0
     8  	MOVD	$_rt0_arm64_linux(SB), R4
     9  	B	(R4)
    10  
    11  // When building with -buildmode=c-shared, this symbol is called when the shared
    12  // library is loaded.
    13  TEXT _rt0_arm64_android_lib(SB),NOSPLIT|NOFRAME,$0
    14  	MOVW	$1, R0                            // argc
    15  	MOVD	$_rt0_arm64_android_argv(SB), R1  // **argv
    16  	MOVD	$_rt0_arm64_linux_lib(SB), R4
    17  	B	(R4)
    18  
    19  DATA _rt0_arm64_android_argv+0x00(SB)/8,$_rt0_arm64_android_argv0(SB)
    20  DATA _rt0_arm64_android_argv+0x08(SB)/8,$0 // end argv
    21  DATA _rt0_arm64_android_argv+0x10(SB)/8,$0 // end envv
    22  DATA _rt0_arm64_android_argv+0x18(SB)/8,$0 // end auxv
    23  GLOBL _rt0_arm64_android_argv(SB),NOPTR,$0x20
    24  
    25  DATA _rt0_arm64_android_argv0(SB)/8, $"gojni"
    26  GLOBL _rt0_arm64_android_argv0(SB),RODATA,$8
    27  

View as plain text