| 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_darwin(SB),NOSPLIT,$0 |
| 8 |
// Darwin puts argc and argv in R0 and R1, |
| 9 |
// so there is no need to go through _rt0_arm64. |
| 10 |
JMP runtime·rt0_go(SB) |
| 11 |
|
| 12 |
// When linking with -buildmode=c-archive or -buildmode=c-shared, |
| 13 |
// this symbol is called from a global initialization function. |
| 14 |
TEXT _rt0_arm64_darwin_lib(SB),NOSPLIT,$0 |
| 15 |
JMP _rt0_arm64_lib(SB) |