diff options
author | Russ Cox <rsc@golang.org> | 2010-11-04 14:00:19 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-11-04 14:00:19 -0400 |
commit | 1ee2b131b04aded7410aef3a80a9bb280d3666cc (patch) | |
tree | 1a8d2366e0cbacdb5b29fb8ca081aa83a447988c /test/eof1.go | |
parent | 90a90204d614283ddc8393765951838e28fbd012 (diff) | |
download | go-1ee2b131b04aded7410aef3a80a9bb280d3666cc.tar.gz |
runtime: ,s/[a-zA-Z0-9_]+/runtime?&/g, almost
Prefix all external symbols in runtime by runtime?,
to avoid conflicts with possible symbols of the same
name in linked-in C libraries. The obvious conflicts
are printf, malloc, and free, but hide everything to
avoid future pain.
The symbols left alone are:
** known to cgo **
_cgo_free
_cgo_malloc
libcgo_thread_start
initcgo
ncgocall
** known to linker **
_rt0_$GOARCH
_rt0_$GOARCH_$GOOS
text
etext
data
end
pclntab
epclntab
symtab
esymtab
** known to C compiler **
_divv
_modv
_div64by32
etc (arch specific)
Tested on darwin/386, darwin/amd64, linux/386, linux/amd64.
Built (but not tested) for freebsd/386, freebsd/amd64, linux/arm, windows/386.
R=r, PeterGo
CC=golang-dev
http://codereview.appspot.com/2899041
Diffstat (limited to 'test/eof1.go')
0 files changed, 0 insertions, 0 deletions