1
0
mirror of https://github.com/golang/go synced 2024-11-22 14:34:45 -07:00
go/misc/cgo/test
Shenghou Ma 551d8b9ff5 cmd/go: new cgo build procedure
This CL adds a step to the build procedure for cgo programs. It uses 'ld -r'
to combine all gcc compiled object file and generate a relocatable object file
for our ld. Additionally, this linking step will combine some static linking
gcc library into the relocatable object file, so that we can use libgcc,
libmingwex and libmingw32 without problem.

   Fixes #3261.
   Fixes #1741.
   Added a testcase for linking in libgcc.

TODO:
1. still need to fix the INDIRECT_SYMBOL_LOCAL problem on Darwin/386.
2. still need to enable the libgcc test on Linux/ARM, because 5l can't deal
with thumb libgcc.

Tested on Darwin/amd64, Darwin/386, FreeBSD/amd64, FreeBSD/386, Linux/amd64,
Linux/386, Linux/ARM, Windows/amd64, Windows/386

R=iant, rsc, bradfitz, coldredlemur
CC=golang-dev
https://golang.org/cl/5822049
2012-08-17 03:42:34 +08:00
..
backdoor all: gofmt -w -s src misc 2012-03-08 10:48:51 -08:00
align.go test: Add the usual Copyright notice. 2012-01-24 14:48:15 -05:00
basic.go misc/cgo/test: fix darwin build 2012-07-31 20:59:06 +09:00
callback_c.c misc/cgo: re-enable some tests 2012-03-06 23:27:30 -05:00
callback.go misc/cgo: re-enable some tests 2012-03-06 23:27:30 -05:00
cgo_linux_test.go misc/cgo/test: only run setgid test on GNU/Linux 2012-07-28 10:40:51 -07:00
cgo_test.go cmd/go: new cgo build procedure 2012-08-17 03:42:34 +08:00
duplicate_symbol.go
env.go misc/cgo/test: make tests run on windows 2012-01-20 12:59:44 +11:00
exports.go
helpers.go
issue1222.go
issue1328.go misc/cgo: re-enable some tests 2012-03-06 23:27:30 -05:00
issue1560.go runtime, misc/cgo/test: fix build for Linux/ARM 2012-05-05 01:35:13 +08:00
issue2462.go
issue3261.go cmd/go: new cgo build procedure 2012-08-17 03:42:34 +08:00
issue3741.go cmd/cgo: generate definitions for GoSlice 2012-06-30 12:40:07 +08:00
setgid_linux.go misc/cgo/test: only run setgid test on GNU/Linux 2012-07-28 10:40:51 -07:00
sleep_windows_386.go cmd/go: new cgo build procedure 2012-08-17 03:42:34 +08:00