]> Cypherpunks repositories - gostls13.git/commit
[dev.boringcrypto] cmd/link: work around DWARF symbol bug
authorRuss Cox <rsc@golang.org>
Wed, 23 Aug 2017 02:50:27 +0000 (22:50 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 24 Aug 2017 18:37:26 +0000 (18:37 +0000)
commit991652dcf02a1f9766f24dc2409b1417547866f1
treec6c67a9f15a356ba16cdd15bc74b0a31e2006dff
parent7e9e3a06cbeb868988fcbe478365f609b8981398
[dev.boringcrypto] cmd/link: work around DWARF symbol bug

The DWARF code is mishandling the case when the host object files
define multiple (distinct) symbols with the same name. They are mapped
to the same DWARF debug symbol, which then appears on the dwarfp
list multiple times, which then breaks the code that processes the list.
Detect duplicates and skip them, because that's trivial, instead of fixing
the underlying problem.

See #21566.

Change-Id: Ib5a34c891d7c15f4c7bb6239d8f31a1ec767b8bc
Reviewed-on: https://go-review.googlesource.com/57943
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/ld/data.go