]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: allow for stdcall decorated dynimport names
authorJames Gray <james@james4k.com>
Wed, 30 Jan 2013 16:29:33 +0000 (08:29 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 30 Jan 2013 16:29:33 +0000 (08:29 -0800)
commitdab268fac34baaa93c41e7239c4412b11ca1e567
treeebc825a10695b561c22f773467e9282572066d0d
parent475d86b6d98a9d7c30d3933d3097727dddb94320
cmd/cgo: allow for stdcall decorated dynimport names

To allow for stdcall decorated names on Windows, two changes were needed:
1. Change the symbol versioning delimiter '@' in cgo's dynimport output to a '#', and in cmd/ld when it parses dynimports.
2. Remove the "@N" decorator from the first argument of cgo's dynimport output (PE only).

Fixes #4607.

R=minux.ma, adg, rsc
CC=golang-dev
https://golang.org/cl/7047043
src/cmd/cgo/out.go
src/cmd/ld/go.c