]> Cypherpunks repositories - gostls13.git/commit
liblink: remove use of linkmode on ARM
authorRuss Cox <rsc@golang.org>
Wed, 22 Jan 2014 00:46:34 +0000 (19:46 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 22 Jan 2014 00:46:34 +0000 (19:46 -0500)
commitdab127baf5a0bae92c289d6fa754f7a7c08745d3
tree6e1ebda15bd1d8e46b5936c8381cd444e51f794a
parentabd556ab70c652f480936540ed6598a3048c0669
liblink: remove use of linkmode on ARM

Now that liblink is compiled into the compilers and assemblers,
it must not refer to the "linkmode", since that is not known until
link time. This CL makes the ARM support no longer use linkmode,
which fixes a bug with cgo binaries that contain their own TLS
variables.

The x86 code must also remove linkmode; that is issue 7164.

Fixes #6992.

R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/55160043
src/cmd/ld/data.c
src/liblink/asm5.c
src/liblink/obj5.c
src/pkg/runtime/asm_arm.s