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_amd64_android(SB),NOSPLIT,$-8 8 MOVQ 0(SP), DI // argc 9 LEAQ 8(SP), SI // argv 10 MOVQ $main(SB), AX 11 JMP AX 12 13 TEXT _rt0_amd64_android_lib(SB),NOSPLIT,$0 14 MOVQ $1, DI // argc 15 MOVQ $_rt0_amd64_android_argv(SB), SI // argv 16 MOVQ $_rt0_amd64_linux_lib(SB), AX 17 JMP AX 18 19 DATA _rt0_amd64_android_argv+0x00(SB)/8,$_rt0_amd64_android_argv0(SB) 20 DATA _rt0_amd64_android_argv+0x08(SB)/8,$0 // end argv 21 DATA _rt0_amd64_android_argv+0x10(SB)/8,$0 // end envv 22 DATA _rt0_amd64_android_argv+0x18(SB)/8,$0 // end auxv 23 GLOBL _rt0_amd64_android_argv(SB),NOPTR,$0x20 24 25 DATA _rt0_amd64_android_argv0(SB)/8, $"gojni" 26 GLOBL _rt0_amd64_android_argv0(SB),RODATA,$8 27