Skip to content

Commit f027d1a

Browse files
author
Elias Naur
committed
runtime: convert a darwin/arm64 syscall to libc
Change-Id: I5704a07375fc672ac70c1f4e8df6f4fff760b4bf Reviewed-on: https://go-review.googlesource.com/118117 Run-TryBot: Elias Naur <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Keith Randall <[email protected]>
1 parent 43a3cdf commit f027d1a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/runtime/rt0_darwin_arm64.s

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
// supports external linking.
99
TEXT _rt0_arm64_darwin(SB),NOSPLIT|NOFRAME,$0
1010
MOVD $42, R0
11-
MOVD $1, R16 // SYS_exit
12-
SVC $0x80
11+
BL libc_exit(SB)
1312

1413
// When linking with -buildmode=c-archive or -buildmode=c-shared,
1514
// this symbol is called from a global initialization function.

0 commit comments

Comments
 (0)