]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: convert a darwin/arm64 syscall to libc
authorElias Naur <elias.naur@gmail.com>
Tue, 12 Jun 2018 09:10:49 +0000 (11:10 +0200)
committerElias Naur <elias.naur@gmail.com>
Tue, 12 Jun 2018 15:29:51 +0000 (15:29 +0000)
Change-Id: I5704a07375fc672ac70c1f4e8df6f4fff760b4bf
Reviewed-on: https://go-review.googlesource.com/118117
Run-TryBot: Elias Naur <elias.naur@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/rt0_darwin_arm64.s

index 960de06044c27eff34f0494d2deff5bc6dafe3e3..719944e626511f160d7328d679a1e591d7c6ce36 100644 (file)
@@ -8,8 +8,7 @@
 // supports external linking.
 TEXT _rt0_arm64_darwin(SB),NOSPLIT|NOFRAME,$0
        MOVD    $42, R0
-       MOVD    $1, R16 // SYS_exit
-       SVC     $0x80
+       BL  libc_exit(SB)
 
 // When linking with -buildmode=c-archive or -buildmode=c-shared,
 // this symbol is called from a global initialization function.