From 9f0baca5054c8039d763f6a4d71d4508e896d546 Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Thu, 27 Aug 2015 11:20:38 +1200 Subject: [PATCH] runtime: fixes for arm64 shared libraries Building for shared libraries requires that all functions that are declared have an implementation and vice versa so make that so on arm64. It would be nicer to not require the stub sigreturn (it will never be called) but that seems a bit awkward. Change-Id: I3cec81697161b452af81fa35939f748bd1acf7fd Reviewed-on: https://go-review.googlesource.com/13995 Reviewed-by: David Crawshaw --- src/runtime/asm_arm64.s | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runtime/asm_arm64.s b/src/runtime/asm_arm64.s index 703ceea97a..797c95eaba 100644 --- a/src/runtime/asm_arm64.s +++ b/src/runtime/asm_arm64.s @@ -426,7 +426,6 @@ end: \ // These have 8 added to make the overall frame size a multiple of 16, // as required by the ABI. (There is another +8 for the saved LR.) -CALLFN(·call16, 24 ) CALLFN(·call32, 40 ) CALLFN(·call64, 72 ) CALLFN(·call128, 136 ) @@ -1029,3 +1028,5 @@ TEXT runtime·prefetcht2(SB),NOSPLIT,$0-8 TEXT runtime·prefetchnta(SB),NOSPLIT,$0-8 RET +TEXT runtime·sigreturn(SB),NOSPLIT,$0-8 + RET