github.com/aloncn/graphics-go@v0.0.1/src/runtime/rt0_android_amd64.s (about) 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 21 DATA _rt0_amd64_android_argv+0x10(SB)/8,$0 22 DATA _rt0_amd64_android_argv+0x18(SB)/8,$15 // AT_PLATFORM 23 DATA _rt0_amd64_android_argv+0x20(SB)/8,$_rt0_amd64_android_auxv0(SB) 24 DATA _rt0_amd64_android_argv+0x28(SB)/8,$0 25 GLOBL _rt0_amd64_android_argv(SB),NOPTR,$0x30 26 27 // TODO: AT_HWCAP necessary? If so, what value? 28 29 DATA _rt0_amd64_android_argv0(SB)/8, $"gojni" 30 GLOBL _rt0_amd64_android_argv0(SB),RODATA,$8 31 32 DATA _rt0_amd64_android_auxv0(SB)/8, $"x86_64" 33 GLOBL _rt0_amd64_android_auxv0(SB),RODATA,$8