]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: allow either of duplicated symbols being dupok
authorCherry Zhang <cherryyz@google.com>
Thu, 17 Oct 2019 22:42:38 +0000 (18:42 -0400)
committerCherry Zhang <cherryyz@google.com>
Sat, 19 Oct 2019 15:18:32 +0000 (15:18 +0000)
commit5777ffd6e6f63647b4e4ab9a0dbfba670d2d5ced
treee38bf4da200d89c144c824f450b5c7493980683c
parentc3459eaab0f83be9515e8bc5624ad372a426a6eb
[dev.link] cmd/link: allow either of duplicated symbols being dupok

If two symbols have the same name, the old code allows either one
being dupok (preferably both, but either is ok). Currently, the
new code only works when the new symbol being dupok (or both).
Allow only old symbol being dupok as well.

One example for this is the tls_g variable on ARM64 and PPC64
when the race detector is enabled.

Should fix Linux/ARM64 build.

Change-Id: I8dd21c017e826847f13471c30dfd71bf225d8076
Reviewed-on: https://go-review.googlesource.com/c/go/+/201642
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/loader/loader.go