]> Cypherpunks repositories - gostls13.git/commit
liblink, cmd/5l: restore flag_shared
authorElias Naur <elias.naur@gmail.com>
Mon, 3 Feb 2014 22:49:57 +0000 (14:49 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 3 Feb 2014 22:49:57 +0000 (14:49 -0800)
commit9ed5995cfe4c217c1291ced9c4a70334383df226
treee0bb795957d38479e3f6dc99b89afbcfa1bbc2f8
parent1dd4da14591a25748f90a42ef35fa360ff8edde2
liblink, cmd/5l: restore flag_shared

CL 56120043 fixed and cleaned up TLS on ARM after introducing liblink, but
left flag_shared broken. This CL restores the (unsupported) flag_shared
behaviour by simply rewriting access to $runtime.tlsgm(SB) with
runtime.tlsgm(SB), to compensate for the extra indirection when going from
the R_ARM_TLS_LE32 relocation to the R_ARM_TLS_IE32 relocation.

Also, remove unnecessary symbol lookup left after 56120043.

LGTM=iant
R=iant, rsc
CC=golang-codereviews
https://golang.org/cl/57000043
src/cmd/5l/5.out.h
src/liblink/asm5.c
src/liblink/obj5.c