1
0
mirror of https://github.com/golang/go synced 2024-11-12 09:50:21 -07:00
go/misc
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
..
arm arm: add gdb support to android launcher script 2010-07-30 10:35:07 +03:00
bash misc/bash: Completion for go tool. 2012-02-28 07:41:49 +11:00
bbedit misc/bbedit: error and rune support 2011-11-14 11:18:00 -08:00
cgo cmd/go: new cgo build procedure 2012-08-17 03:42:34 +08:00
chrome/gophertool misc/chrome/gophertool: fix manifest 2012-07-05 16:52:13 -04:00
dashboard misc/dashboard/codereview: fixes for non-reviewers. 2012-08-08 13:16:21 +10:00
dist misc/dist: use archive/tar.FileInfoHeader 2012-05-24 17:32:25 -07:00
emacs misc/emacs: Fix the gofmt patching when the TMPDIR is not the default. 2012-06-29 12:49:31 -04:00
fraise misc: update type + builtin lists found in editor support files 2011-01-19 23:07:49 -05:00
goplay misc/goplay: fix error on IE8. 2012-03-27 11:16:29 +11:00
IntelliJIDEA misc: syntax highlighting support on IntelliJ IDEA 2011-05-20 11:03:33 -07:00
kate kate: add error and rune 2011-11-14 11:16:06 -08:00
notepadplus misc/notepadplus: error and rune support 2011-11-14 11:19:08 -08:00
osx misc/osx: update for dist tool, drop image.bash, update readme 2012-02-07 14:37:57 +11:00
swig cmd/go, go/build, misc/swig: add SWIG support to Go tool 2012-08-03 18:08:43 -07:00
vim misc/vim: fix :Import insertion heuristic. 2012-07-30 08:48:51 +10:00
xcode misc/xcode: fix typos 2012-03-05 15:50:48 -08:00
zsh misc: add zsh completion for go tool. 2012-03-03 00:12:40 +01:00
benchcmp misc: update usage message in benchcmp for go tool 2012-03-05 10:57:58 +11:00
pprof runtime/pprof, misc/pprof: correct profile of total allocations. 2012-05-31 07:57:49 +02:00