]> Cypherpunks repositories - gostls13.git/commit
liblink, cmd/ld, runtime: set the type of runtime.tlsg in runtime
authorShenghou Ma <minux@golang.org>
Fri, 26 Dec 2014 05:48:33 +0000 (00:48 -0500)
committerMinux Ma <minux@golang.org>
Fri, 6 Feb 2015 05:39:51 +0000 (05:39 +0000)
commitd738c6b0cad4782f50712b8a2dac95e0c1cb2366
tree1d71c43de618b5260e3c1aaf4748650da0da1fba
parent3819907a5565c53457b826912a10b18eda708f38
liblink, cmd/ld, runtime: set the type of runtime.tlsg in runtime

In the old code, liblink, cmd/ld and runtime all have code determine
whether runtime.tlsg is an actual variable or a placeholder for TLS
relocation. This change consolidate them into one: the runtime/tls_arm.s
will ultimately determine the type of that variable.

Change-Id: I3b3f80791a1db4c2b7318f81a115972cd2237e43
Reviewed-on: https://go-review.googlesource.com/2118
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Reviewed-by: Dave Cheney <dave@cheney.net>
src/cmd/ld/lib.c
src/liblink/asm5.c
src/runtime/tls_arm.s