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

Issue 2731041: code review 2731041: 8l: pe generation fixes (Closed)

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

Description

8l: pe generation fixes Restore ability to have different file and section alignment in generated pe file. Stop generating .bss pe section, it is part of .data now. Some code refactoring.

Patch Set 1 #

Patch Set 2 : code review 2731041: 8l: pe generation fixes #

Total comments: 2

Patch Set 3 : code review 2731041: 8l: pe generation fixes #

Total comments: 2

Patch Set 4 : code review 2731041: 8l: pe generation fixes #

Total comments: 7

Patch Set 5 : code review 2731041: 8l: pe generation fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -59 lines) Patch
M src/cmd/8l/asm.c View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M src/cmd/8l/obj.c View 2 chunks +3 lines, -5 lines 0 comments Download
M src/cmd/ld/data.c View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M src/cmd/ld/pe.h View 2 chunks +9 lines, -3 lines 0 comments Download
M src/cmd/ld/pe.c View 1 2 3 4 10 chunks +50 lines, -50 lines 0 comments Download

Messages

Total messages: 18
brainman
Hello rsc, vcc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 8 months ago (2010-10-25 23:49:04 UTC) #1
rsc1
thanks for fixing this yet again http://codereview.appspot.com/2731041/diff/2001/src/cmd/ld/data.c File src/cmd/ld/data.c (right): http://codereview.appspot.com/2731041/diff/2001/src/cmd/ld/data.c#newcode740 src/cmd/ld/data.c:740: if(HEADTYPE == 10) ...
14 years, 8 months ago (2010-10-25 23:52:52 UTC) #2
brainman
Thanks for review. I get: --- cd ../test fail: ./recover2.go 5,7c5,18 < panic: runtime error: ...
14 years, 8 months ago (2010-10-26 00:15:37 UTC) #3
brainman
Hello rsc, vcc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 8 months ago (2010-10-26 00:15:51 UTC) #4
brainman
> ... > 1 known bugs; 0 unexpected bugs; test output differs > FAILED Forget ...
14 years, 8 months ago (2010-10-26 00:26:36 UTC) #5
rsc
>> "#runtime error: comparing uncomparable type []intruntim > > /runtime/proc.c:1028 >> >> runtime.panic(0x805529c, 0xb7e520f8) does ...
14 years, 8 months ago (2010-10-26 00:41:01 UTC) #6
brainman
On 2010/10/26 00:41:01, rsc wrote: > does it really look like this or did the ...
14 years, 8 months ago (2010-10-26 00:54:40 UTC) #7
rsc
I think this is your change. Specifically I think that the file offset where the ...
14 years, 8 months ago (2010-10-26 01:00:11 UTC) #8
brainman
> I think this is your change. You're correct - once I remove my changes, ...
14 years, 8 months ago (2010-10-26 01:33:05 UTC) #9
rsc1
here it is (at least one) http://codereview.appspot.com/2731041/diff/9001/src/cmd/8l/asm.c File src/cmd/8l/asm.c (right): http://codereview.appspot.com/2731041/diff/9001/src/cmd/8l/asm.c#newcode401 src/cmd/8l/asm.c:401: symo = rnd(HEADR+segtext.filelen, ...
14 years, 8 months ago (2010-10-26 03:26:16 UTC) #10
brainman
http://codereview.appspot.com/2731041/diff/9001/src/cmd/8l/asm.c File src/cmd/8l/asm.c (right): http://codereview.appspot.com/2731041/diff/9001/src/cmd/8l/asm.c#newcode401 src/cmd/8l/asm.c:401: symo = rnd(HEADR+segtext.filelen, PEFILEALIGN)+segdata.filelen; On 2010/10/26 03:26:16, rsc1 wrote: ...
14 years, 8 months ago (2010-10-26 03:45:48 UTC) #11
brainman
Hello rsc, vcc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 8 months ago (2010-10-26 04:20:10 UTC) #12
brainman
On 2010/10/26 04:20:10, brainman wrote: > Hello rsc, vcc (cc: mailto:golang-dev@googlegroups.com), > > Please take ...
14 years, 8 months ago (2010-10-30 03:37:12 UTC) #13
vcc
http://codereview.appspot.com/2731041/diff/18001/src/cmd/ld/pe.c File src/cmd/ld/pe.c (right): http://codereview.appspot.com/2731041/diff/18001/src/cmd/ld/pe.c#newcode70 src/cmd/ld/pe.c:70: nextsectoff = rndsect(nextsectoff+sectsize); rnd(nextsectoff+sectsize, PESECTALIGN) should ok. http://codereview.appspot.com/2731041/diff/18001/src/cmd/ld/pe.h File ...
14 years, 8 months ago (2010-10-30 12:33:27 UTC) #14
brainman
Thank you for review. http://codereview.appspot.com/2731041/diff/18001/src/cmd/8l/asm.c File src/cmd/8l/asm.c (right): http://codereview.appspot.com/2731041/diff/18001/src/cmd/8l/asm.c#newcode405 src/cmd/8l/asm.c:405: symo = rnd(HEADR+segtext.filelen, PEFILEALIGN)+segdata.filelen; Wei, ...
14 years, 8 months ago (2010-11-01 05:15:46 UTC) #15
brainman
Hello rsc, vcc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 8 months ago (2010-11-01 05:15:47 UTC) #16
rsc1
LGTM
14 years, 8 months ago (2010-11-01 18:31:36 UTC) #17
brainman
14 years, 8 months ago (2010-11-01 23:57:04 UTC) #18
*** Submitted as http://code.google.com/p/go/source/detail?r=bfbe64e3e806 ***

8l: pe generation fixes

Restore ability to have different file and
section alignment in generated pe file.

Stop generating .bss pe section, it is
part of .data now.

Some code refactoring.

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

Committer: Alex Brainman <alex.brainman@gmail.com>
Sign in to reply to this message.

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