runtime: export cgoCheck functions
authorIan Lance Taylor <ian@gcc.gnu.org>
Sat, 2 Dec 2017 00:46:00 +0000 (00:46 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Sat, 2 Dec 2017 00:46:00 +0000 (00:46 +0000)
commit79c9f76563e0c0943c9dc44bd1b892175c3239b9
treed493104ca59804fbe820b492ad9b9be9ec0ea2d1
parent9638589faff5b5ec33afba0b5a4560a3f0b5aaa6
runtime: export cgoCheck functions

    The functions cgoCheckPointer and cgoCheckResult are called by code
    generated by cgo. That means that we need to export them using
    go:linkname, as otherwise they are local symbols. The cgo code
    currently uses weak references to only call the symbols if they are
    defined, which is why it has been working--the cgo code has not been
    doing any checks.

    Reviewed-on: https://go-review.googlesource.com/80295

From-SVN: r255347
gcc/go/gofrontend/MERGE
libgo/go/runtime/cgocall.go