]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/ld: fix symbol visibility for external linking
authorShenghou Ma <minux@golang.org>
Wed, 4 Mar 2015 01:45:00 +0000 (20:45 -0500)
committerMinux Ma <minux@golang.org>
Wed, 4 Mar 2015 08:32:00 +0000 (08:32 +0000)
commit60b8908588eb60b7e0d2053e52d191987a868c74
treefceb59695a3b28a11343d245ff98cfe34b57a8c9
parent09d9520be931a32a8ab18990a5684550e3f4b6cb
cmd/internal/ld: fix symbol visibility for external linking

The original C code is: (x->type & SHIDDEN) ? 2 : 0, however when
cleaning up the code for c2go, the ternary operator is rewritten in
the exact opposite way.

We need a test for this, and that's being tracked as #10070.

Fixes #10067.

Change-Id: I24a5e021597d8bc44218c6e75bab6446513b76cf
Signed-off-by: Shenghou Ma <minux@golang.org>
Reviewed-on: https://go-review.googlesource.com/6730
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/internal/ld/symtab.go