1
0
mirror of https://github.com/golang/go synced 2024-09-29 14:24:32 -06:00
go/misc/cgo
Michael Hudson-Doyle cd9fc3ebfb cmd/link: allow symbols from .a files to override those from .so files
https://golang.org/s/execmodes defines rules for how multiple codes of a go
package work when they end up in the address space of a single process, but
currently the linker blows up in this situation. Fix that by loading all .a
files before any .so files and ignoring duplicate symbols found when loading
shared libraries.

I know this is very very late for 1.6 but at least it should clearly not have
any effect when shared libraries are not in use.

Change-Id: I512ac912937e7502ff58eb5628b658ecce3c38e5
Reviewed-on: https://go-review.googlesource.com/18714
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
2016-01-20 19:53:53 +00:00
..
errors cmd/cgo, runtime: recognize unsafe.Pointer(&s[0]) in cgo pointer checks 2016-01-08 03:56:30 +00:00
gmp misc/cgo/gmp: change pi.go to use standard Go copyright header 2015-12-11 13:29:46 +00:00
life misc/cgo/stdio: reenable tests 2015-12-05 21:24:30 +00:00
nocgo cmd/ld: really import runtime/cgo for external link 2014-05-20 21:36:50 -07:00
stdio misc/cgo/stdio: reenable tests 2015-12-05 21:24:30 +00:00
test runtime: make NumGoroutine and Stack agree not to include system goroutines 2016-01-13 01:46:01 +00:00
testasan
testcarchive runtime: for c-archive/c-shared, install signal handlers synchronously 2016-01-09 00:58:38 +00:00
testcshared cmd/go: -buildmode=c-shared should work on darwin/386 2016-01-13 18:24:38 +00:00
testgodefs build: convert run.bash, run.bat, and run.rc into a Go program 2015-03-03 23:22:11 +00:00
testsanitizers runtime: call msanwrite on object passed to runtime/cgo 2016-01-06 04:04:42 +00:00
testshared cmd/link: allow symbols from .a files to override those from .so files 2016-01-20 19:53:53 +00:00
testsigfwd runtime: for c-archive/c-shared, don't install unnecessary signal handlers 2015-12-18 22:27:38 +00:00
testso cmd/dist: convert testso test into Go 2015-06-12 04:33:50 +00:00
testsovar misc/cgo/testsovar: needs the extern keyword to export variables on non-windows platforms 2015-07-21 18:10:57 +00:00
testtls misc/cgo/testtls: make test less flaky 2014-01-21 19:44:51 -05:00