]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: tweaks to allow -buildmode=shared to work
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Mon, 12 Oct 2015 00:20:10 +0000 (13:20 +1300)
committerMichael Hudson-Doyle <michael.hudson@canonical.com>
Mon, 19 Oct 2015 21:23:36 +0000 (21:23 +0000)
Building Go shared libraries requires that all functions that have declarations
without bodies have implementations and vice versa, so remove the
implementation of call16 and add a stub implementation of sigreturn.

Change-Id: I4d5a30c8637a5da7991054e151a536611d5bea46
Reviewed-on: https://go-review.googlesource.com/15966
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/asm_ppc64x.s

index 27c649257f18c0d0b75146033d289f9314ff7eb8..1946cc5c47c6767d53695d5cceeabb2bc9a15952 100644 (file)
@@ -426,7 +426,6 @@ end:                                                \
        BL      runtime·callwritebarrier(SB);  \
        RET
 
-CALLFN(·call16, 16)
 CALLFN(·call32, 32)
 CALLFN(·call64, 64)
 CALLFN(·call128, 128)
@@ -1227,3 +1226,6 @@ TEXT runtime·prefetcht2(SB),NOSPLIT,$0-8
 
 TEXT runtime·prefetchnta(SB),NOSPLIT,$0-8
        RET
+
+TEXT runtime·sigreturn(SB),NOSPLIT,$0-8
+        RET