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

Issue 7563045: code review 7563045: cmd/ld: steps toward 386 host linking (Closed)

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

Description

cmd/ld: steps toward 386 host linking - Introduce MaxAlign constant and use in data layout and ELF section header. - Allow up to 16-byte alignment for large objects (will help Keith's hash changes). - Emit ELF symbol for .rathole (global /dev/null used by 8c). - Invoke gcc with -m32/-m64 as appropriate. - Don't invoke gcc if writing the .o file failed.

Patch Set 1 #

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

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

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

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

Total comments: 10

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

Patch Set 7 : diff -r fa13899da667 https://go.googlecode.com/hg #

Patch Set 8 : diff -r 6178ad08e03e https://go.googlecode.com/hg #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -99 lines) Patch
M src/cmd/5l/l.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/6l/l.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/8l/l.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/8l/obj.c View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/cmd/ld/data.c View 1 2 3 4 5 11 chunks +107 lines, -96 lines 0 comments Download
M src/cmd/ld/elf.c View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/ld/lib.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/ld/lib.c View 1 2 3 4 5 4 chunks +11 lines, -2 lines 0 comments Download

Messages

Total messages: 5
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg
12 years, 2 months ago (2013-03-07 18:01:59 UTC) #1
iant
https://codereview.appspot.com/7563045/diff/6008/src/cmd/8l/l.h File src/cmd/8l/l.h (right): https://codereview.appspot.com/7563045/diff/6008/src/cmd/8l/l.h#newcode45 src/cmd/8l/l.h:45: MaxAlign = 16, // max data alignment Why use ...
12 years, 2 months ago (2013-03-07 19:27:23 UTC) #2
rsc
PTAL https://codereview.appspot.com/7563045/diff/6008/src/cmd/8l/l.h File src/cmd/8l/l.h (right): https://codereview.appspot.com/7563045/diff/6008/src/cmd/8l/l.h#newcode45 src/cmd/8l/l.h:45: MaxAlign = 16, // max data alignment On ...
12 years, 2 months ago (2013-03-07 20:53:54 UTC) #3
iant
LGTM
12 years, 2 months ago (2013-03-07 22:03:34 UTC) #4
rsc
12 years, 2 months ago (2013-03-08 03:57:27 UTC) #5
*** Submitted as https://code.google.com/p/go/source/detail?r=bb71b657b5bc ***

cmd/ld: steps toward 386 host linking

- Introduce MaxAlign constant and use in data layout
and ELF section header.

- Allow up to 16-byte alignment for large objects
(will help Keith's hash changes).

- Emit ELF symbol for .rathole (global /dev/null used by 8c).

- Invoke gcc with -m32/-m64 as appropriate.

- Don't invoke gcc if writing the .o file failed.

R=golang-dev, iant
CC=golang-dev
https://codereview.appspot.com/7563045
Sign in to reply to this message.

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