aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/rt0_solaris_amd64.s
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2017-10-10 15:11:05 -0700
committerIan Lance Taylor <iant@golang.org>2017-10-11 21:12:51 +0000
commit30cb30e596759279b487b835440269989bd08b04 (patch)
tree0b314f5e15529e197cd18f8172e014631550b31b /src/runtime/rt0_solaris_amd64.s
parentc15c44ec48fa278330b5d205cf7b4508250496fe (diff)
downloadgo-30cb30e596759279b487b835440269989bd08b04.tar.gz
go-30cb30e596759279b487b835440269989bd08b04.zip
runtime: unify amd64 -buildmode=c-archive/c-shared entry point code
This adds the _lib entry point to various GOOS_amd64.s files. A future CL will enable c-archive/c-shared mode for those targets. As far as I can tell, the newosproc0 function in os_darwin.go was passing the wrong arguments to bsdthread_create. The newosproc0 function is never called in the current testsuite. Change-Id: Ie7c1c2e326cec87013e0fea84f751091b0ea7f51 Reviewed-on: https://go-review.googlesource.com/69711 Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/rt0_solaris_amd64.s')
-rw-r--r--src/runtime/rt0_solaris_amd64.s3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/rt0_solaris_amd64.s b/src/runtime/rt0_solaris_amd64.s
index 695b4a6c8e..5c46ded3ae 100644
--- a/src/runtime/rt0_solaris_amd64.s
+++ b/src/runtime/rt0_solaris_amd64.s
@@ -6,3 +6,6 @@
TEXT _rt0_amd64_solaris(SB),NOSPLIT,$-8
JMP _rt0_amd64(SB)
+
+TEXT _rt0_amd64_solaris_lib(SB),NOSPLIT,$0
+ JMP _rt0_amd64_lib(SB)