Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3675)

Issue 10499043: code review 10499043: runtime,cmd/ld: Merge TLS symbols and teach 5l about ARM TLS (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 10 months ago by elias.naur
Modified:
10 years, 8 months ago
Reviewers:
minux1, rsc, bradfitz
CC:
golang-dev
Visibility:
Public.

Description

runtime,cmd/ld: Merge TLS symbols and teach 5l about ARM TLS This CL prepares for external linking support to ARM. The pseudo-symbols runtime.g and runtime.m are merged into a single runtime.tlsgm symbol. When external linking, the offset of a thread local variable is stored at a memory location instead of being embedded into a offset of a ldr instruction. With a single runtime.tlsgm symbol for both g and m, only one such offset is needed. The larger part of this CL moves TLS code from gcc compiled to internally compiled. The TLS code now uses the modern MRC instruction, and 5l is taught about TLS fallbacks in case the instruction is not available or appropriate. This CL is needed by CL 10271047.

Patch Set 1 #

Patch Set 2 : diff -r af0c031528c3076cb822774cf07376e1c0498009 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 2bbca155a87f https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 2bbca155a87fcbc413c1b192d555647614d1cd2d https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 2bbca155a87f https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r 2a6434ea7154c353ddc28e7ac7ae3ab0ddd9433c https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -230 lines) Patch
M src/cmd/5l/noop.c View 1 2 3 4 5 3 chunks +22 lines, -1 line 0 comments Download
M src/cmd/5l/obj.c View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M src/cmd/6l/span.c View 1 2 3 1 chunk +3 lines, -10 lines 0 comments Download
M src/cmd/8l/span.c View 1 1 chunk +3 lines, -10 lines 0 comments Download
M src/cmd/ld/data.c View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/cmd/ld/lib.c View 1 2 3 4 5 2 chunks +7 lines, -1 line 0 comments Download
M src/cmd/ld/symtab.c View 1 2 3 1 chunk +2 lines, -11 lines 0 comments Download
M src/pkg/runtime/asm_arm.s View 1 2 3 4 5 5 chunks +43 lines, -10 lines 0 comments Download
M src/pkg/runtime/cgo/asm_arm.s View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
R src/pkg/runtime/cgo/cgo_arm.c View 1 1 chunk +0 lines, -12 lines 0 comments Download
M src/pkg/runtime/cgo/gcc_arm.S View 1 1 chunk +1 line, -5 lines 0 comments Download
M src/pkg/runtime/cgo/gcc_freebsd_arm.c View 1 2 chunks +11 lines, -55 lines 0 comments Download
M src/pkg/runtime/cgo/gcc_linux_arm.c View 1 3 chunks +7 lines, -50 lines 0 comments Download
M src/pkg/runtime/cgo/gcc_netbsd_arm.c View 1 2 chunks +6 lines, -53 lines 0 comments Download
M src/pkg/runtime/cgocall.c View 1 2 3 4 5 1 chunk +0 lines, -5 lines 0 comments Download
M src/pkg/runtime/sys_freebsd_arm.s View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M src/pkg/runtime/sys_linux_arm.s View 1 2 3 4 5 2 chunks +8 lines, -3 lines 0 comments Download
M src/pkg/runtime/sys_netbsd_arm.s View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 11
elias.naur
10 years, 10 months ago (2013-06-24 14:12:28 UTC) #1
elias.naur
On 2013/06/24 14:12:28, elias.naur wrote: This is ready for review, but because of the moratorium ...
10 years, 10 months ago (2013-06-24 14:12:58 UTC) #2
elias.naur
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
10 years, 9 months ago (2013-07-04 10:00:13 UTC) #3
capnm
The go binary crashes. 2bbca155a87f tip + this CL # Testing packages. run.bash: line 48: ...
10 years, 9 months ago (2013-07-04 14:25:51 UTC) #4
elias.naur
On 2013/07/04 14:25:51, capnm wrote: > The go binary crashes. > 2bbca155a87f tip + this ...
10 years, 9 months ago (2013-07-04 17:51:09 UTC) #5
capnm
On 2013/07/04 17:51:09, elias.naur wrote: > Somehow, the CL didn't include all my changes, and ...
10 years, 9 months ago (2013-07-05 10:38:13 UTC) #6
rsc
10 years, 8 months ago (2013-07-29 17:28:48 UTC) #7
bradfitz
Did a comment get lost here? On Mon, Jul 29, 2013 at 10:28 AM, <rsc@golang.org> ...
10 years, 8 months ago (2013-07-29 20:43:05 UTC) #8
rsc
No, I was adding myself to the Reviewers list. Sorry about the confusion.
10 years, 8 months ago (2013-07-29 20:47:07 UTC) #9
rsc
LGTM Lots of magic here but it seems modest enough.
10 years, 8 months ago (2013-08-13 19:14:58 UTC) #10
elias.naur
10 years, 8 months ago (2013-08-13 22:11:43 UTC) #11
On 2013/08/13 19:14:58, rsc wrote:
> LGTM
> 
> Lots of magic here but it seems modest enough.

Thanks a lot! As explained in 10271047, I'll update that CL when this CL is
submitted and finally update 9733044 for submission.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b