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

Issue 4650067: code review 4650067: 5l, 6l, 8l: Add a PT_LOAD PHDR entry for the PHDR. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 10 months ago by danderson
Modified:
13 years, 7 months ago
Reviewers:
CC:
iant2, rsc, dave2, golang-dev
Visibility:
Public.

Description

5l, 6l, 8l: Add a PT_LOAD PHDR entry for the PHDR. Per the TIS ELF spec, if a PHDR entry is present in the program header table, it must be part of the memory image of the program. Failure to do this makes elflint complain, and causes some tools that manipulate ELF to crash.

Patch Set 1 #

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

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

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

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

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

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

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

Messages

Total messages: 10
danderson
Hello golang-dev@googlegroups.com (cc: dave@natulte.net, golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 10 months ago (2011-07-02 21:52:02 UTC) #1
danderson
For reference, here's the diff of the output of `elflint` and `paxctl`, running on a ...
13 years, 10 months ago (2011-07-02 21:57:25 UTC) #2
danderson
Tested on linux/amd64, same diff of elflint/paxctl. - Dave On Sat, Jul 2, 2011 at ...
13 years, 10 months ago (2011-07-02 23:51:27 UTC) #3
iant2
danderson@google.com writes: > 5l, 6l, 8l: Add a PT_LOAD PHDR entry for the PHDR. > ...
13 years, 10 months ago (2011-07-03 04:25:41 UTC) #4
danderson
On Sat, Jul 2, 2011 at 21:25, Ian Lance Taylor <iant@google.com> wrote: > danderson@google.com writes: ...
13 years, 10 months ago (2011-07-03 04:39:59 UTC) #5
danderson
On Sat, Jul 2, 2011 at 21:39, David Anderson <danderson@google.com> wrote: > On Sat, Jul ...
13 years, 10 months ago (2011-07-03 05:39:32 UTC) #6
rsc
Thanks http://codereview.appspot.com/4650067/diff/3/src/cmd/5l/asm.c File src/cmd/5l/asm.c (right): http://codereview.appspot.com/4650067/diff/3/src/cmd/5l/asm.c#newcode297 src/cmd/5l/asm.c:297: int textoff; s/textoff/o/ http://codereview.appspot.com/4650067/diff/3/src/cmd/5l/asm.c#newcode466 src/cmd/5l/asm.c:466: /* PHDR must ...
13 years, 10 months ago (2011-07-12 18:37:51 UTC) #7
danderson
Modifications made to all linkers. http://codereview.appspot.com/4650067/diff/3/src/cmd/5l/asm.c File src/cmd/5l/asm.c (right): http://codereview.appspot.com/4650067/diff/3/src/cmd/5l/asm.c#newcode297 src/cmd/5l/asm.c:297: int textoff; On 2011/07/12 ...
13 years, 10 months ago (2011-07-12 23:32:44 UTC) #8
rsc
LGTM
13 years, 10 months ago (2011-07-13 00:49:35 UTC) #9
rsc
13 years, 10 months ago (2011-07-13 00:49:59 UTC) #10
*** Submitted as http://code.google.com/p/go/source/detail?r=2131931a8b68 ***

5l, 6l, 8l: Add a PT_LOAD PHDR entry for the PHDR.

Per the TIS ELF spec, if a PHDR entry is present in the
program header table, it must be part of the memory image of
the program. Failure to do this makes elflint complain, and
causes some tools that manipulate ELF to crash.

R=iant, rsc
CC=dave, golang-dev
http://codereview.appspot.com/4650067

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