]> Cypherpunks repositories - gostls13.git/commit
cmd/link: permit duplicate weak symbols
authorJoel Sing <joel@sing.id.au>
Wed, 27 Mar 2019 13:53:19 +0000 (00:53 +1100)
committerIan Lance Taylor <iant@golang.org>
Fri, 29 Mar 2019 17:46:01 +0000 (17:46 +0000)
commitc90f6dd4966087d85e1dcafc02b64ecb0c7f4e7e
tree709477b170978e76c21db2c69a77c314e1a8d8db
parent6966b67510df9a96dd798e5f6e26c5ad6dd925a5
cmd/link: permit duplicate weak symbols

Permit weak symbols to be duplicates - most external linkers allow
this and there are various situations where they can occur (including
retpoline and retguard).

Fixes #29563

Change-Id: I355493c847fbc8f670a85a643db65a4cf8f9883d
Reviewed-on: https://go-review.googlesource.com/c/go/+/169658
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
misc/cgo/test/testdata/issue29563.go [new file with mode: 0644]
misc/cgo/test/testdata/issue29563/weak.go [new file with mode: 0644]
misc/cgo/test/testdata/issue29563/weak1.c [new file with mode: 0644]
misc/cgo/test/testdata/issue29563/weak2.c [new file with mode: 0644]
src/cmd/link/internal/loadelf/ldelf.go