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

Issue 5268044: code review 5268044: 5l, 6l, 8l: correct ELFRESERVE diagnostic (Closed)

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

Description

5l, 6l, 8l: correct ELFRESERVE diagnostic If the length of the interpreter string pushes us over the ELFRESERVE limit, the resulting error message will be comical. I was doing some ELF tinkering with a modified version of 8l when I hit this. To be clear, the stock linkers wouldn't hit this without adding about forty more section headers. We're safe for now. ;) Also, remove a redundant call to cflush.

Patch Set 1 #

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -6 lines) Patch
M src/cmd/5l/asm.c View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/cmd/6l/asm.c View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/cmd/8l/asm.c View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 3
ality
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
13 years, 9 months ago (2011-10-15 12:30:48 UTC) #1
rsc
LGTM
13 years, 9 months ago (2011-10-18 19:49:46 UTC) #2
rsc
13 years, 9 months ago (2011-10-18 20:05:40 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=835c4bc6a947 ***

5l, 6l, 8l: correct ELFRESERVE diagnostic

If the length of the interpreter string
pushes us over the ELFRESERVE limit, the
resulting error message will be comical.

I was doing some ELF tinkering with a
modified version of 8l when I hit this.

To be clear, the stock linkers wouldn't
hit this without adding about forty more
section headers.  We're safe for now. ;)

Also, remove a redundant call to cflush.

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/5268044

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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