]> Cypherpunks repositories - gostls13.git/commit
liblink, runtime: move all references to runtime.tlsg to tls_arm.s
authorShenghou Ma <minux@golang.org>
Fri, 6 Feb 2015 07:05:30 +0000 (02:05 -0500)
committerMinux Ma <minux@golang.org>
Mon, 9 Feb 2015 22:14:06 +0000 (22:14 +0000)
commit06611434479daf7d27bd2cd69d10be7d4cb5cd61
tree90328b891100524a25de75cf446b734629f51c90
parent04ce9dbf355a5d1b2e0b979d02f16ef2bf83833f
liblink, runtime: move all references to runtime.tlsg to tls_arm.s

CL 2118 makes the assumption that all references to runtime.tlsg
should be accompanied by a declaration of runtime.tlsg if its type
should be a normal variable, instead of a placeholder for TLS
relocation.

Because if runtime.tlsg is not declared by the runtime package,
the type of runtime.tlsg will be zero, so fix the check in liblink
to look for 0 instead of STLSBSS (the type will be initialized by
cmd/ld, but cmd/ld doesn't run during assembly).

Change-Id: I691ac5c3faea902f8b9a0b963e781b22e7b269a7
Reviewed-on: https://go-review.googlesource.com/4030
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/liblink/asm5.c
src/runtime/asm_arm.s
src/runtime/tls_arm.s