runtime: Support -buildmode=c-shared.
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 29 Apr 2015 21:31:53 +0000 (21:31 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 29 Apr 2015 21:31:53 +0000 (21:31 +0000)
commit081564faed7cc138dfcaa48021cc01a94fd1ba3c
tree12e6811acbf892c31a8a0e6baa6cf5a49ed6beaa
parent2f79da78f3bdb1dd1176f0c50262b8dde9ea188b
runtime: Support -buildmode=c-shared.

These changes permit using the go tool from the upcoming Go
1.5 release with -buildmode=c-archive to build gccgo code into
an archive file that can be linked with a C program.

From-SVN: r222594
libgo/Makefile.am
libgo/Makefile.in
libgo/runtime/go-cgo.c
libgo/runtime/go-libmain.c [new file with mode: 0644]
libgo/runtime/go-main.c
libgo/runtime/proc.c
libgo/runtime/runtime.h