]> Cypherpunks repositories - gostls13.git/commit
runtime: add isarchive, set by the linker
authorDavid Crawshaw <crawshaw@golang.org>
Thu, 9 Apr 2015 19:09:52 +0000 (15:09 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Thu, 9 Apr 2015 20:02:02 +0000 (20:02 +0000)
commitd1b1eee280cf21c3776fdcc50d7f7721465dea68
tree52a86d307976c45a2718724942c0a889c5c52181
parentd340b10366a0ce9425365ca233c5b6636c62faaa
runtime: add isarchive, set by the linker

According to Go execution modes, a Go program compiled with
-buildmode=c-archive has a main function, but it is ignored on run.
This gives the runtime the information it needs not to run the main.

I have this working with pending linker changes on darwin/amd64.

Change-Id: I49bd7d65aa619ec847c464a872afa5deea7d4d30
Reviewed-on: https://go-review.googlesource.com/8701
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/proc.go
src/runtime/runtime2.go