]> Cypherpunks repositories - gostls13.git/commit
cmd/link: when reading symbols from a shared library, allow duplicates when they...
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Tue, 16 Jun 2015 01:41:11 +0000 (13:41 +1200)
committerIan Lance Taylor <iant@golang.org>
Tue, 16 Jun 2015 22:33:36 +0000 (22:33 +0000)
commita5f57d795010bba4b391944dac545adef017ed85
tree2b986bb44becc3fa64d459bc1be063880028ad76
parentb1be1217914a3f3698eb1361e750fbb36fb96b2e
cmd/link: when reading symbols from a shared library, allow duplicates when they are both in bss

This makes the behaviour match what happens when duplicate symbols are read
from regular object files and fixes errors about cgoAlwaysFalse when linking
an executable that uses cgo against a shared library.

Change-Id: Ibb8cd8fe3f7813cde504b7483f1e857868d7e063
Reviewed-on: https://go-review.googlesource.com/11117
Reviewed-by: Ian Lance Taylor <iant@golang.org>
misc/cgo/testshared/shared_test.go
misc/cgo/testshared/src/execgo/exe.go [new file with mode: 0644]
src/cmd/link/internal/ld/lib.go