1
0
mirror of https://github.com/golang/go synced 2024-11-23 16:00:06 -07:00
go/misc/cgo/testshared
Michael Hudson-Doyle 8b07ec20f7 cmd/compile, runtime: make the go.itab.* symbols module-local
Otherwise, the way the ELF dynamic linker works means that you can end up with
the same itab being passed to additab twice, leading to the itab linked list
having a cycle in it. Add a test to additab in runtime to catch this when it
happens, not some arbitrary and surprsing time later.

Fixes #17594

Change-Id: I6c82edcc9ac88ac188d1185370242dc92f46b1ad
Reviewed-on: https://go-review.googlesource.com/32131
Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2016-10-27 19:13:35 +00:00
..
src cmd/compile, runtime: make the go.itab.* symbols module-local 2016-10-27 19:13:35 +00:00
shared_test.go cmd/link: fix -buildmode=pie / -linkshared combination 2016-09-13 02:40:30 +00:00