]> Cypherpunks repositories - gostls13.git/commit
cmd/link: use IMAGE_SYM_CLASS_STATIC for local symbols
authorAlex Brainman <alex.brainman@gmail.com>
Sun, 5 Mar 2017 08:57:26 +0000 (19:57 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Tue, 7 Mar 2017 03:26:47 +0000 (03:26 +0000)
commitd3f5e3691712a2098fc8171574748389cec931a1
treed516dee65bb9274ea5d7eabf4eecdb50e474146e
parent6491496d10c8e7e62f875c7781a2887564976b89
cmd/link: use IMAGE_SYM_CLASS_STATIC for local symbols

Sometimes asm code in 2 different packages name its global
symbols with the same name. When these symbols are passed
to gcc, it refuses to link them thinking they are duplicate.
Mark these symbols with IMAGE_SYM_CLASS_STATIC.

Fixes #19198.

Change-Id: Ia5f59ede47354a2b48ce60b7d406c9f097ff2000
Reviewed-on: https://go-review.googlesource.com/37810
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/go/go_test.go
src/cmd/link/internal/ld/pe.go