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

Issue 2124041: code review 2124041: 8l: emit DWARF in Windows PE. (Closed)

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

Description

8l: emit DWARF in Windows PE.

Patch Set 1 #

Patch Set 2 : code review 2124041: 8l: emit DWARF in Windows PE. #

Patch Set 3 : code review 2124041: 8l: emit DWARF in Windows PE. #

Patch Set 4 : code review 2124041: 8l: emit DWARF in Windows PE. #

Patch Set 5 : code review 2124041: 8l: emit DWARF in Windows PE. #

Total comments: 2

Patch Set 6 : code review 2124041: 8l: emit DWARF in Windows PE. #

Total comments: 3

Patch Set 7 : code review 2124041: 8l: emit DWARF in Windows PE. #

Patch Set 8 : code review 2124041: 8l: emit DWARF in Windows PE. #

Total comments: 20

Patch Set 9 : code review 2124041: 8l: emit DWARF in Windows PE. #

Patch Set 10 : code review 2124041: 8l: emit DWARF in Windows PE. #

Total comments: 2

Patch Set 11 : code review 2124041: 8l: emit DWARF in Windows PE. #

Total comments: 4

Patch Set 12 : code review 2124041: 8l: emit DWARF in Windows PE. #

Total comments: 16

Patch Set 13 : code review 2124041: 8l: emit DWARF in Windows PE. #

Total comments: 6

Patch Set 14 : code review 2124041: 8l: emit DWARF in Windows PE. #

Total comments: 2

Patch Set 15 : code review 2124041: 8l: emit DWARF in Windows PE. #

Total comments: 2

Patch Set 16 : code review 2124041: 8l: emit DWARF in Windows PE. #

Patch Set 17 : code review 2124041: 8l: emit DWARF in Windows PE. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -4 lines) Patch
M src/cmd/ld/dwarf.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/ld/dwarf.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +43 lines, -4 lines 0 comments Download
M src/cmd/ld/pe.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +3 lines, -0 lines 0 comments Download
M src/cmd/ld/pe.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +64 lines, -0 lines 0 comments Download

Messages

Total messages: 59
vcc
Hello rsc, lvd, brainman (cc: golang-dev@googlegroups.com, vcc), I'd like you to review this change.
14 years, 9 months ago (2010-09-01 16:31:28 UTC) #1
lvd
as a general comment, i'd prefer it if you could add a function to emit ...
14 years, 9 months ago (2010-09-01 16:35:15 UTC) #2
lvd
see http://codereview.appspot.com/2123041/ for how the macho stuff is taking shape, except that it doesnt work ...
14 years, 9 months ago (2010-09-01 16:36:41 UTC) #3
rsc1
I'd like to hold off on this CL. The DWARF support is still very much ...
14 years, 9 months ago (2010-09-01 16:41:37 UTC) #4
vcc
2010/9/2 <lvd@google.com> > as a general comment, i'd prefer it if you could add a ...
14 years, 9 months ago (2010-09-01 16:53:42 UTC) #5
vcc
2010/9/2 <lvd@google.com> > as a general comment, i'd prefer it if you could add a ...
14 years, 9 months ago (2010-09-01 16:54:10 UTC) #6
vcc
2010/9/2 <rsc@google.com> > Also, why DWARF on Windows? > Wouldn't it make more sense to ...
14 years, 9 months ago (2010-09-01 16:59:03 UTC) #7
vcc
2010/9/2 <rsc@google.com> > Also, why DWARF on Windows? > Wouldn't it make more sense to ...
14 years, 9 months ago (2010-09-01 17:20:30 UTC) #8
vcc
2010/9/2 <rsc@google.com> > Also, why DWARF on Windows? > Wouldn't it make more sense to ...
14 years, 9 months ago (2010-09-01 17:21:27 UTC) #9
vcc
2010/9/2 <rsc@google.com> > Also, why DWARF on Windows? > Wouldn't it make more sense to ...
14 years, 9 months ago (2010-09-01 17:21:48 UTC) #10
Joe Poirier
On Wed, Sep 1, 2010 at 11:49 AM, Wei guangjing <vcc.163@gmail.com> wrote: > 2010/9/2 <rsc@google.com> ...
14 years, 9 months ago (2010-09-02 00:27:39 UTC) #11
brainman
On 2010/09/01 16:31:28, vcc wrote: > I'd like you to review this change. I think ...
14 years, 9 months ago (2010-09-02 00:46:28 UTC) #12
rsc
> I don't think we're clear on that for more mature platforms, let along > ...
14 years, 9 months ago (2010-09-02 01:09:45 UTC) #13
vcc
2010/9/2 Russ Cox <rsc@golang.org> > > Just to be fair, I think the situation is ...
14 years, 9 months ago (2010-09-02 03:34:33 UTC) #14
Joe Poirier
On Wed, Sep 1, 2010 at 8:09 PM, Russ Cox <rsc@golang.org> wrote: >> I don't ...
14 years, 9 months ago (2010-09-02 03:42:02 UTC) #15
vcc
move code to dwarf.c, please take another look.
14 years, 9 months ago (2010-09-06 14:57:31 UTC) #16
lvd
I like that much better, thanks. do you mind if we keep this on hold ...
14 years, 9 months ago (2010-09-06 15:01:53 UTC) #17
vcc
2010/9/6 Luuk van Dijk <lvd@google.com> > I like that much better, thanks. > > do ...
14 years, 9 months ago (2010-09-06 15:20:31 UTC) #18
vcc
Update code for global and local variables and type info, please take another look. Debug ...
14 years, 7 months ago (2010-10-25 15:15:45 UTC) #19
lvd
http://codereview.appspot.com/2124041/diff/36001/src/cmd/ld/dwarf.c File src/cmd/ld/dwarf.c (right): http://codereview.appspot.com/2124041/diff/36001/src/cmd/ld/dwarf.c#newcode2028 src/cmd/ld/dwarf.c:2028: debug_abbrev = newPESection("/4", abbrevsize, 0); Can't you add a ...
14 years, 7 months ago (2010-10-25 15:24:52 UTC) #20
vcc
Thanks for review, please take another look. http://codereview.appspot.com/2124041/diff/36001/src/cmd/ld/dwarf.c File src/cmd/ld/dwarf.c (right): http://codereview.appspot.com/2124041/diff/36001/src/cmd/ld/dwarf.c#newcode2028 src/cmd/ld/dwarf.c:2028: debug_abbrev = ...
14 years, 7 months ago (2010-10-25 16:42:52 UTC) #21
lvd
i don't see much difference. did you hg upload? On Mon, Oct 25, 2010 at ...
14 years, 7 months ago (2010-10-25 19:17:03 UTC) #22
vcc
2010/10/26 Luuk van Dijk <lvd@google.com> > i don't see much difference. did you hg upload? ...
14 years, 7 months ago (2010-10-26 04:25:10 UTC) #23
lvd
from my point of view this is nearly ok, see comments below. i defer to ...
14 years, 7 months ago (2010-10-28 15:37:27 UTC) #24
rsc1
please add the blank line that lvd pointed out and i will submit. i don't ...
14 years, 7 months ago (2010-11-01 20:30:41 UTC) #25
vcc
Please take another look. http://codereview.appspot.com/2124041/diff/43001/src/cmd/ld/dwarf.c File src/cmd/ld/dwarf.c (right): http://codereview.appspot.com/2124041/diff/43001/src/cmd/ld/dwarf.c#newcode1994 src/cmd/ld/dwarf.c:1994: vlong off; On 2010/10/28 15:37:27, ...
14 years, 7 months ago (2010-11-02 02:54:03 UTC) #26
brainman
http://codereview.appspot.com/2124041/diff/61001/src/cmd/ld/dwarf.c File src/cmd/ld/dwarf.c (right): http://codereview.appspot.com/2124041/diff/61001/src/cmd/ld/dwarf.c#newcode1995 src/cmd/ld/dwarf.c:1995: newPEDWARFSection("/4", abbrevo, abbrevsize); Why do you need to have ...
14 years, 7 months ago (2010-11-02 22:05:47 UTC) #27
vcc
http://codereview.appspot.com/2124041/diff/61001/src/cmd/ld/dwarf.c File src/cmd/ld/dwarf.c (right): http://codereview.appspot.com/2124041/diff/61001/src/cmd/ld/dwarf.c#newcode1995 src/cmd/ld/dwarf.c:1995: newPEDWARFSection("/4", abbrevo, abbrevsize); On 2010/11/02 22:05:48, brainman wrote: > ...
14 years, 7 months ago (2010-11-03 03:34:50 UTC) #28
brainman
http://codereview.appspot.com/2124041/diff/61001/src/cmd/ld/dwarf.c File src/cmd/ld/dwarf.c (right): http://codereview.appspot.com/2124041/diff/61001/src/cmd/ld/dwarf.c#newcode1995 src/cmd/ld/dwarf.c:1995: newPEDWARFSection("/4", abbrevo, abbrevsize); Why do you need to have ...
14 years, 7 months ago (2010-11-03 03:47:27 UTC) #29
vcc
2010/11/3 <alex.brainman@gmail.com> > > http://codereview.appspot.com/2124041/diff/61001/src/cmd/ld/dwarf.c > File src/cmd/ld/dwarf.c (right): > > > http://codereview.appspot.com/2124041/diff/61001/src/cmd/ld/dwarf.c#newcode1995 > src/cmd/ld/dwarf.c:1995: ...
14 years, 7 months ago (2010-11-04 04:44:32 UTC) #30
brainman
http://codereview.appspot.com/2124041/diff/61001/src/cmd/ld/dwarf.c File src/cmd/ld/dwarf.c (right): http://codereview.appspot.com/2124041/diff/61001/src/cmd/ld/dwarf.c#newcode1995 src/cmd/ld/dwarf.c:1995: newPEDWARFSection("/4", abbrevo, abbrevsize); Please, provide some references for what ...
14 years, 7 months ago (2010-11-09 00:45:48 UTC) #31
vcc
http://codereview.appspot.com/2124041/diff/61001/src/cmd/ld/dwarf.c File src/cmd/ld/dwarf.c (right): http://codereview.appspot.com/2124041/diff/61001/src/cmd/ld/dwarf.c#newcode1995 src/cmd/ld/dwarf.c:1995: newPEDWARFSection("/4", abbrevo, abbrevsize); On 2010/11/09 00:45:48, brainman wrote: > ...
14 years, 7 months ago (2010-11-15 13:15:57 UTC) #32
rsc
seems fine to me. when alex is happy, LGTM http://codereview.appspot.com/2124041/diff/61001/src/cmd/ld/dwarf.c File src/cmd/ld/dwarf.c (right): http://codereview.appspot.com/2124041/diff/61001/src/cmd/ld/dwarf.c#newcode1995 src/cmd/ld/dwarf.c:1995: ...
14 years, 6 months ago (2010-12-07 18:41:53 UTC) #33
brainman
I didn't find any references on how to incorporate dwarf info in pe file, so, ...
14 years, 6 months ago (2010-12-20 00:50:30 UTC) #34
vcc
On 2010/12/20 00:50:30, brainman wrote: > I didn't find any references on how to incorporate ...
14 years, 6 months ago (2010-12-20 13:22:56 UTC) #35
vcc
http://codereview.appspot.com/2124041/diff/61001/src/cmd/ld/dwarf.c File src/cmd/ld/dwarf.c (right): http://codereview.appspot.com/2124041/diff/61001/src/cmd/ld/dwarf.c#newcode1995 src/cmd/ld/dwarf.c:1995: newPEDWARFSection("/4", abbrevo, abbrevsize); On 2010/12/07 18:41:53, rsc wrote: > ...
14 years, 6 months ago (2010-12-20 13:23:19 UTC) #36
vcc
Please take another look.
14 years, 6 months ago (2010-12-20 13:23:43 UTC) #37
brainman
http://codereview.appspot.com/2124041/diff/79001/src/cmd/ld/dwarf.c File src/cmd/ld/dwarf.c (right): http://codereview.appspot.com/2124041/diff/79001/src/cmd/ld/dwarf.c#newcode2574 src/cmd/ld/dwarf.c:2574: newPEDWARFSection("/4", abbrevsize); // "/4" as ".debug_abbrev", For more than ...
14 years, 6 months ago (2010-12-20 23:39:01 UTC) #38
vcc
On 2010/12/20 23:39:01, brainman wrote: > http://codereview.appspot.com/2124041/diff/79001/src/cmd/ld/dwarf.c > File src/cmd/ld/dwarf.c (right): > > http://codereview.appspot.com/2124041/diff/79001/src/cmd/ld/dwarf.c#newcode2574 > ...
14 years, 6 months ago (2010-12-21 05:33:07 UTC) #39
vcc
Please take another look.
14 years, 6 months ago (2010-12-21 05:33:25 UTC) #40
brainman
Getting there <g>. Thank you. Alex http://codereview.appspot.com/2124041/diff/75002/src/cmd/ld/dwarf.c File src/cmd/ld/dwarf.c (right): http://codereview.appspot.com/2124041/diff/75002/src/cmd/ld/dwarf.c#newcode2586 src/cmd/ld/dwarf.c:2586: newPESymbolStringTable(); You could ...
14 years, 6 months ago (2010-12-21 05:52:24 UTC) #41
vcc
Please take another look. http://codereview.appspot.com/2124041/diff/75002/src/cmd/ld/dwarf.c File src/cmd/ld/dwarf.c (right): http://codereview.appspot.com/2124041/diff/75002/src/cmd/ld/dwarf.c#newcode2586 src/cmd/ld/dwarf.c:2586: newPESymbolStringTable(); On 2010/12/21 05:52:24, brainman ...
14 years, 6 months ago (2010-12-21 07:06:58 UTC) #42
brainman
It doesn't build: %%%% making 8l %%%% quietgcc -I"/root/hg/go/include" -ggdb -O2 -c "/root/hg/go/src/cmd/8l/asm.c" quietgcc -I"/root/hg/go/include" ...
14 years, 6 months ago (2010-12-22 00:16:08 UTC) #43
vcc
Please take another look. http://codereview.appspot.com/2124041/diff/95001/src/cmd/ld/pe.c File src/cmd/ld/pe.c (right): http://codereview.appspot.com/2124041/diff/95001/src/cmd/ld/pe.c#newcode36 src/cmd/ld/pe.c:36: static char *symnames; On 2010/12/22 ...
14 years, 6 months ago (2010-12-22 02:59:40 UTC) #44
brainman
http://codereview.appspot.com/2124041/diff/101001/src/cmd/ld/pe.c File src/cmd/ld/pe.c (right): http://codereview.appspot.com/2124041/diff/101001/src/cmd/ld/pe.c#newcode9 src/cmd/ld/pe.c:9: #include <stdlib.h> It doesn't have itoa() function. It doesn't ...
14 years, 6 months ago (2010-12-22 03:42:25 UTC) #45
vcc
2010/12/22 <alex.brainman@gmail.com> > > http://codereview.appspot.com/2124041/diff/101001/src/cmd/ld/pe.c > > File src/cmd/ld/pe.c (right): > > http://codereview.appspot.com/2124041/diff/101001/src/cmd/ld/pe.c#newcode9 > src/cmd/ld/pe.c:9: ...
14 years, 6 months ago (2010-12-22 04:49:16 UTC) #46
vcc
Please take another look. http://codereview.appspot.com/2124041/diff/101001/src/cmd/ld/pe.c File src/cmd/ld/pe.c (right): http://codereview.appspot.com/2124041/diff/101001/src/cmd/ld/pe.c#newcode9 src/cmd/ld/pe.c:9: #include <stdlib.h> On 2010/12/22 03:42:25, ...
14 years, 6 months ago (2010-12-22 05:10:30 UTC) #47
brainman
One more. http://codereview.appspot.com/2124041/diff/105001/src/cmd/ld/pe.c File src/cmd/ld/pe.c (right): http://codereview.appspot.com/2124041/diff/105001/src/cmd/ld/pe.c#newcode317 src/cmd/ld/pe.c:317: if(nextsymoff+strlen(name) > 255) { I think it ...
14 years, 6 months ago (2010-12-22 05:25:10 UTC) #48
vcc
Please take another look. http://codereview.appspot.com/2124041/diff/105001/src/cmd/ld/pe.c File src/cmd/ld/pe.c (right): http://codereview.appspot.com/2124041/diff/105001/src/cmd/ld/pe.c#newcode317 src/cmd/ld/pe.c:317: if(nextsymoff+strlen(name) > 255) { On ...
14 years, 6 months ago (2010-12-22 06:37:27 UTC) #49
brainman
LGTM. Good job. Thank you. Russ, would you look over it again, please. It's changed ...
14 years, 6 months ago (2010-12-22 23:29:13 UTC) #50
lvd
the dwarf.c and .h LGTM, thanks. i'm curious if the .debug_gdb_scripts mechanism will out of ...
14 years, 5 months ago (2010-12-23 08:51:18 UTC) #51
brainman
On 2010/12/23 08:51:18, lvd wrote: > ... i'm curious if the .debug_gdb_scripts > mechanism will ...
14 years, 5 months ago (2010-12-23 23:58:29 UTC) #52
vcc
2010/12/24 <alex.brainman@gmail.com> > ... PS: I can see, there is a problem finding 386/asm.s at ...
14 years, 5 months ago (2010-12-24 02:24:58 UTC) #53
vcc
2010/12/23 Luuk van Dijk <lvd@google.com> > the dwarf.c and .h LGTM, thanks. i'm curious if ...
14 years, 5 months ago (2011-01-12 04:09:37 UTC) #54
rsc
LGTM If you make the change Alex suggested about "too many names" I will submit. ...
14 years, 5 months ago (2011-01-19 20:14:42 UTC) #55
vcc
http://codereview.appspot.com/2124041/diff/110001/src/cmd/ld/pe.c File src/cmd/ld/pe.c (right): http://codereview.appspot.com/2124041/diff/110001/src/cmd/ld/pe.c#newcode318 src/cmd/ld/pe.c:318: diag("too many names"); On 2010/12/22 23:29:14, brainman wrote: > ...
14 years, 5 months ago (2011-01-20 00:46:52 UTC) #56
vcc
Please take another look. On 2011/01/19 20:14:42, rsc wrote: > LGTM > > If you ...
14 years, 5 months ago (2011-01-20 00:47:39 UTC) #57
vcc
hg sync & hg upload, please take another look.
14 years, 5 months ago (2011-01-20 15:50:53 UTC) #58
rsc
14 years, 5 months ago (2011-01-20 16:28:35 UTC) #59
*** Submitted as 79b8f17beda8 ***

8l: emit DWARF in Windows PE.

R=rsc, lvd, brainman, Joe Poirier
CC=golang-dev
http://codereview.appspot.com/2124041

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