Text file
src/runtime/rt0_netbsd_arm64.s
1 // Copyright 2019 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_netbsd(SB),NOSPLIT,$0
8 MOVD 0(RSP), R0 // argc
9 ADD $8, RSP, R1 // argv
10 JMP main(SB)
11
12 // When building with -buildmode=c-shared, this symbol is called when the shared
13 // library is loaded.
14 TEXT _rt0_arm64_netbsd_lib(SB),NOSPLIT,$0
15 JMP _rt0_arm64_lib(SB)
16
View as plain text