]> Cypherpunks repositories - gostls13.git/commit
runtime: unify amd64 -buildmode=c-archive/c-shared entry point code
authorIan Lance Taylor <iant@golang.org>
Tue, 10 Oct 2017 22:11:05 +0000 (15:11 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 11 Oct 2017 21:12:51 +0000 (21:12 +0000)
commit30cb30e596759279b487b835440269989bd08b04
tree0b314f5e15529e197cd18f8172e014631550b31b
parentc15c44ec48fa278330b5d205cf7b4508250496fe
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>
src/runtime/asm_amd64.s
src/runtime/os_darwin.go
src/runtime/rt0_android_amd64.s
src/runtime/rt0_darwin_amd64.s
src/runtime/rt0_dragonfly_amd64.s
src/runtime/rt0_freebsd_amd64.s
src/runtime/rt0_linux_amd64.s
src/runtime/rt0_netbsd_amd64.s
src/runtime/rt0_openbsd_amd64.s
src/runtime/rt0_solaris_amd64.s