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

Issue 4182061: code review 4182061: 6l: pe fixes (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 3 months ago by vcc
Modified:
14 years, 3 months ago
Reviewers:
brainman
CC:
rsc, golang-dev
Visibility:
Public.

Description

6l: pe fixes .data length need set to segdata.len for make gdb works.

Patch Set 1 #

Patch Set 2 : code review 4182061: 6l: pe fixes #

Total comments: 1

Patch Set 3 : code review 4182061: 6l: pe fixes #

Total comments: 2

Patch Set 4 : code review 4182061: 6l: pe fixes #

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

Messages

Total messages: 15
vcc
Hello golang-dev@googlegroups.com, I'd like you to review this change.
14 years, 3 months ago (2011-02-16 16:24:57 UTC) #1
rsc
> - && p->from.offset != 0x58) { > + && p->from.offset != 0x58 && p->from.offset ...
14 years, 3 months ago (2011-02-16 16:36:29 UTC) #2
rsc
or maybe p->from.offset <= 8 :-)
14 years, 3 months ago (2011-02-16 18:11:40 UTC) #3
brainman
http://codereview.appspot.com/4182061/diff/2001/src/cmd/ld/pe.c File src/cmd/ld/pe.c (right): http://codereview.appspot.com/4182061/diff/2001/src/cmd/ld/pe.c#newcode484 src/cmd/ld/pe.c:484: d = addpesection(".data", segdata.len, pe64 ? segdata.len : segdata.filelen, ...
14 years, 3 months ago (2011-02-16 22:16:33 UTC) #4
vcc
2011/2/17 <alex.brainman@gmail.com> > > http://codereview.appspot.com/4182061/diff/2001/src/cmd/ld/pe.c > File src/cmd/ld/pe.c (right): > > http://codereview.appspot.com/4182061/diff/2001/src/cmd/ld/pe.c#newcode484 > src/cmd/ld/pe.c:484: d ...
14 years, 3 months ago (2011-02-17 03:24:17 UTC) #5
brainman
On 2011/02/17 03:24:17, vcc wrote: > > for X64 gdb need, otherwise gdb can't get ...
14 years, 3 months ago (2011-02-17 04:52:59 UTC) #6
vcc
2011/2/17 <alex.brainman@gmail.com> > On 2011/02/17 03:24:17, vcc wrote: > > for X64 gdb need, otherwise ...
14 years, 3 months ago (2011-02-17 14:30:08 UTC) #7
vcc
2011/2/17 <rsc@golang.org> > or maybe p->from.offset <= 8 :-) Done. > > > > http://codereview.appspot.com/4182061/ ...
14 years, 3 months ago (2011-02-17 14:33:17 UTC) #8
vcc
PTAL
14 years, 3 months ago (2011-02-17 14:33:40 UTC) #9
rsc1
http://codereview.appspot.com/4182061/diff/11001/src/cmd/ld/pe.c File src/cmd/ld/pe.c (right): http://codereview.appspot.com/4182061/diff/11001/src/cmd/ld/pe.c#newcode485 src/cmd/ld/pe.c:485: d = addpesection(".data", segdata.len, segdata.len, &segdata); I believe you ...
14 years, 3 months ago (2011-02-17 14:57:40 UTC) #10
vcc
PTAL http://codereview.appspot.com/4182061/diff/11001/src/cmd/ld/pe.c File src/cmd/ld/pe.c (right): http://codereview.appspot.com/4182061/diff/11001/src/cmd/ld/pe.c#newcode485 src/cmd/ld/pe.c:485: d = addpesection(".data", segdata.len, segdata.len, &segdata); On 2011/02/17 ...
14 years, 3 months ago (2011-02-17 15:32:20 UTC) #11
rsc1
LGTM Leaving for Alex.
14 years, 3 months ago (2011-02-17 16:01:08 UTC) #12
brainman
On 2011/02/17 15:32:20, vcc wrote: > PTAL > LGTM
14 years, 3 months ago (2011-02-17 23:58:38 UTC) #13
brainman
*** Submitted as http://code.google.com/p/go/source/detail?r=01afe6e8f286 *** 6l: pe fixes R=rsc, brainman CC=golang-dev http://codereview.appspot.com/4182061 Committer: Alex Brainman ...
14 years, 3 months ago (2011-02-17 23:58:55 UTC) #14
brainman
14 years, 3 months ago (2011-02-18 00:02:34 UTC) #15
On 2011/02/17 14:57:40, rsc1 wrote:
> 
> Maybe it would help to look at the source code in gdb that is
> reading the PE files to see what it expects.

Tried it. I'll try again one day, when I'm brave enough!

Alex
Sign in to reply to this message.

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