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

Issue 7369057: code review 7369057: cmd/ld: host linking support for linux/amd64 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by rsc
Modified:
12 years, 3 months ago
Reviewers:
bsiegert, elias.naur
CC:
iant, golang-dev
Visibility:
Public.

Description

cmd/ld: host linking support for linux/amd64 Still to do: non-linux and non-amd64. It may work on other ELF-based amd64 systems too, but untested. "go test -ldflags -hostobj $GOROOT/misc/cgo/test" passes. Much may yet change, but this seems a reasonable checkpoint.

Patch Set 1 #

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

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

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

Patch Set 5 : diff -r 011944857f1f https://go.googlecode.com/hg #

Patch Set 6 : diff -r 622045a2f25a https://code.google.com/p/go/ #

Total comments: 20

Patch Set 7 : diff -r 622045a2f25a https://code.google.com/p/go/ #

Patch Set 8 : diff -r 622045a2f25a https://code.google.com/p/go/ #

Patch Set 9 : diff -r 622045a2f25a https://code.google.com/p/go/ #

Patch Set 10 : diff -r 622045a2f25a https://code.google.com/p/go/ #

Patch Set 11 : diff -r f800157ce425 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+393 lines, -123 lines) Patch
M src/cmd/5l/asm.c View 1 2 3 4 9 chunks +9 lines, -9 lines 0 comments Download
M src/cmd/5l/l.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/5l/obj.c View 1 2 3 4 5 6 3 chunks +3 lines, -0 lines 0 comments Download
M src/cmd/6l/asm.c View 1 2 3 4 11 chunks +13 lines, -13 lines 0 comments Download
M src/cmd/6l/l.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/6l/obj.c View 1 2 3 4 5 6 3 chunks +6 lines, -0 lines 0 comments Download
M src/cmd/8l/asm.c View 1 2 3 4 8 chunks +10 lines, -10 lines 0 comments Download
M src/cmd/8l/l.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/8l/obj.c View 1 2 3 4 5 6 3 chunks +4 lines, -0 lines 0 comments Download
M src/cmd/ld/data.c View 1 2 3 4 5 6 7 3 chunks +3 lines, -11 lines 0 comments Download
M src/cmd/ld/dwarf.c View 1 2 3 4 5 6 7 8 9 4 chunks +4 lines, -4 lines 0 comments Download
M src/cmd/ld/go.c View 1 2 3 4 5 6 7 11 chunks +23 lines, -16 lines 0 comments Download
M src/cmd/ld/ldelf.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/ld/ldmacho.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/ld/lib.h View 1 2 3 4 5 6 7 4 chunks +21 lines, -1 line 0 comments Download
M src/cmd/ld/lib.c View 1 2 3 4 5 6 7 8 15 chunks +266 lines, -37 lines 0 comments Download
M src/cmd/ld/macho.c View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -12 lines 0 comments Download
M src/cmd/ld/pe.c View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M src/cmd/ld/symtab.c View 1 2 3 4 1 chunk +11 lines, -1 line 0 comments Download
M src/pkg/runtime/cgo/callbacks.c View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M src/pkg/runtime/cgocall.c View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 8
rsc
Hello iant (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
12 years, 3 months ago (2013-03-06 22:41:48 UTC) #1
iant
https://codereview.appspot.com/7369057/diff/13001/src/cmd/5l/obj.c File src/cmd/5l/obj.c (right): https://codereview.appspot.com/7369057/diff/13001/src/cmd/5l/obj.c#newcode132 src/cmd/5l/obj.c:132: Extraneous blank line. https://codereview.appspot.com/7369057/diff/13001/src/cmd/6l/obj.c File src/cmd/6l/obj.c (right): https://codereview.appspot.com/7369057/diff/13001/src/cmd/6l/obj.c#newcode86 src/cmd/6l/obj.c:86: ...
12 years, 3 months ago (2013-03-07 00:18:23 UTC) #2
rsc
PTAL https://codereview.appspot.com/7369057/diff/13001/src/cmd/5l/obj.c File src/cmd/5l/obj.c (right): https://codereview.appspot.com/7369057/diff/13001/src/cmd/5l/obj.c#newcode132 src/cmd/5l/obj.c:132: On 2013/03/07 00:18:23, iant wrote: > Extraneous blank ...
12 years, 3 months ago (2013-03-07 03:04:20 UTC) #3
iant
LGTM
12 years, 3 months ago (2013-03-07 05:41:59 UTC) #4
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=fa13899da667 *** cmd/ld: host linking support for linux/amd64 Still to do: non-linux ...
12 years, 3 months ago (2013-03-07 14:19:05 UTC) #5
bsiegert
This change broke cgo on Windows and the BSDs. --Benny. On Thu, Mar 7, 2013 ...
12 years, 3 months ago (2013-03-07 17:10:36 UTC) #6
rsc
Of course it did. :-(
12 years, 3 months ago (2013-03-07 17:17:36 UTC) #7
elias.naur
12 years, 3 months ago (2013-03-07 18:18:45 UTC) #8
Message was sent while issue was closed.
The TLS section doesn't seem to be generated when using -hostobj, making use of
__thread variables from Cgo crash. You may already be aware of this, but I added
a (currently failing) test for this at:

https://codereview.appspot.com/7578043

Use or apply at your convenience.
Sign in to reply to this message.

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