github.com/zxy12/golang151_with_comment@v0.0.0-20190507085033-721809559d3c/runtime/rt0_linux_arm64.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_arm64_linux(SB),NOSPLIT,$-8 8 MOVD 0(RSP), R0 // argc 9 ADD $8, RSP, R1 // argv 10 BL main(SB) 11 12 TEXT main(SB),NOSPLIT,$-8 13 MOVD $runtime·rt0_go(SB), R2 14 BL (R2) 15 exit: 16 MOVD $0, R0 17 MOVD $94, R8 // sys_exit 18 SVC 19 B exit