]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: don't #include cgo_export.h in gccgo _cgo_main.c
authorIan Lance Taylor <iant@golang.org>
Sat, 20 Dec 2014 01:21:14 +0000 (17:21 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 20 Dec 2014 01:42:00 +0000 (01:42 +0000)
commit1303f0d3d89729e9bb9c6a13027a137e42728245
treedc615773636a0e90ff439814a0fb03075f6382b3
parent1e65616e1a03bfb71478a8dc43a4cd6e8c013107
cmd/cgo: don't #include cgo_export.h in gccgo _cgo_main.c

Instead of relying on the asm names declared in the gccgo version of
cgo_export.h, just emit a dummy symbol with the right asm name.  This
is enough to let the _cgo_main link succeed, which is all that matters
here.

Fixes #9294.

Change-Id: I803990705b6b226ed0adf17dc57b58a9f501b213
Reviewed-on: https://go-review.googlesource.com/1901
Reviewed-by: Minux Ma <minux@golang.org>
src/cmd/cgo/out.go