]> Cypherpunks repositories - gostls13.git/commit
runtime: unify 386 entry point code
authorIan Lance Taylor <iant@golang.org>
Fri, 13 Oct 2017 02:46:42 +0000 (19:46 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 17 Oct 2017 04:03:16 +0000 (04:03 +0000)
commit378de1ae43c6406ae5159f235f834da73403a541
treeeec430c0572070482cb70e678fd48d54a77fe3c6
parent151c66b59fb657c90d2cad4c72b2059319806a9c
runtime: unify 386 entry point code

Unify the 386 entry point code as much as possible.

The main function could not be unified because on Windows 386 it is
called _main. Putting main in asm_386.s caused multiple definition
errors when using the external linker.

Add the _lib entry point to various operating systems.  A future CL
will enable c-archive/c-shared mode for those targets.

Fix _rt0_386_windows_lib_go--it was passing arguments as though it
were amd64.

Change-Id: Ic73f1c95cdbcbea87f633f4a29bbc218a5db4f58
Reviewed-on: https://go-review.googlesource.com/70530
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/cmd/vet/all/whitelist/386.txt
src/runtime/asm_386.s
src/runtime/rt0_android_386.s
src/runtime/rt0_darwin_386.s
src/runtime/rt0_freebsd_386.s
src/runtime/rt0_linux_386.s
src/runtime/rt0_nacl_386.s
src/runtime/rt0_netbsd_386.s
src/runtime/rt0_openbsd_386.s
src/runtime/rt0_plan9_386.s
src/runtime/rt0_windows_386.s