]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/ld: don't automatically mark symbols created by -X as reachable
authorIan Lance Taylor <iant@golang.org>
Sun, 28 Sep 2014 15:27:05 +0000 (08:27 -0700)
committerIan Lance Taylor <iant@golang.org>
Sun, 28 Sep 2014 15:27:05 +0000 (08:27 -0700)
commitf6fc14094a476d2e23722f124cfcd8204c2659b0
tree875f21415f04acde2038d270833b43b5574725e3
parent56c4d0a5c63a81de4a0d935337b226d229a44c07
cmd/ld: don't automatically mark symbols created by -X as reachable

This fixes the bug in which the linker reports "missing Go
type information" when a -X option refers to a symbol that is
not used.

Fixes #8821.

LGTM=rsc
R=rsc, r
CC=golang-codereviews
https://golang.org/cl/151000043
src/cmd/ld/data.c
src/cmd/ld/lib.c
test/linkx.go