From f027d1a8782387fb7e354054a669a202524335e4 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Tue, 12 Jun 2018 11:10:49 +0200 Subject: [PATCH] runtime: convert a darwin/arm64 syscall to libc Change-Id: I5704a07375fc672ac70c1f4e8df6f4fff760b4bf Reviewed-on: https://go-review.googlesource.com/118117 Run-TryBot: Elias Naur TryBot-Result: Gobot Gobot Reviewed-by: Keith Randall --- src/runtime/rt0_darwin_arm64.s | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/runtime/rt0_darwin_arm64.s b/src/runtime/rt0_darwin_arm64.s index 960de06044..719944e626 100644 --- a/src/runtime/rt0_darwin_arm64.s +++ b/src/runtime/rt0_darwin_arm64.s @@ -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. -- 2.50.0