go/misc/cgo/testshared/src
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
..
dep cmd/compile: define func value symbols at declaration 2015-07-20 00:50:46 +00:00
dep2 cmd/internal/ld: do not depend on local symbols to read a type's gcdata 2015-05-27 14:11:16 +00:00
exe cmd/compile: define func value symbols at declaration 2015-07-20 00:50:46 +00:00
exe2 cmd/internal/ld: store the libraries a shared library was linked against in a note 2015-05-27 13:25:32 +00:00
execgo cmd/link: when reading symbols from a shared library, allow duplicates when they are both in bss 2015-06-16 22:33:36 +00:00
explicit cmd/link: allow symbols from .a files to override those from .so files 2016-01-20 19:53:53 +00:00
implicit cmd/link: allow symbols from .a files to override those from .so files 2016-01-20 19:53:53 +00:00
implicitcmd cmd/link: allow symbols from .a files to override those from .so files 2016-01-20 19:53:53 +00:00
trivial misc/cgo/testshared: add basic test for -buildmode=shared/-linkshared 2015-04-29 23:47:47 +00:00