summaryrefslogtreecommitdiffstats
path: root/contrib/go/_std_1.26/src/runtime/rt0_darwin_arm64.s
blob: e9cd5fc7f5e1fc5fb2769541246981ae9aceeb3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

#include "textflag.h"

TEXT _rt0_arm64_darwin(SB),NOSPLIT,$0
	// Darwin puts argc and argv in R0 and R1,
	// so there is no need to go through _rt0_arm64.
	JMP	runtime·rt0_go(SB)

// When linking with -buildmode=c-archive or -buildmode=c-shared,
// this symbol is called from a global initialization function.
TEXT _rt0_arm64_darwin_lib(SB),NOSPLIT,$0
	JMP	_rt0_arm64_lib(SB)