Commit 9de38d67 authored by Ian Lance Taylor's avatar Ian Lance Taylor

runtime/cgo: export symbols in both internal and external link mode

R=rsc, r
CC=golang-dev
https://golang.org/cl/9060045
parent a5557589
...@@ -45,7 +45,8 @@ _cgo_allocate_internal(uintptr len, byte *ret) ...@@ -45,7 +45,8 @@ _cgo_allocate_internal(uintptr len, byte *ret)
FLUSH(&ret); FLUSH(&ret);
} }
#pragma dynexport _cgo_allocate _cgo_allocate #pragma cgo_export_static _cgo_allocate
#pragma cgo_export_dynamic _cgo_allocate
void void
_cgo_allocate(void *a, int32 n) _cgo_allocate(void *a, int32 n)
{ {
...@@ -73,7 +74,8 @@ _cgo_panic_internal(byte *p) ...@@ -73,7 +74,8 @@ _cgo_panic_internal(byte *p)
runtime·panic(err); runtime·panic(err);
} }
#pragma dynexport _cgo_panic _cgo_panic #pragma cgo_export_static _cgo_panic
#pragma cgo_export_dynamic _cgo_panic
void void
_cgo_panic(void *a, int32 n) _cgo_panic(void *a, int32 n)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment