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

Issue 5823059: code review 5823059: cmd/ld: take section symbols' value into account for PE (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by minux1
Modified:
11 years, 11 months ago
Reviewers:
CC:
golang-dev, iant, rsc, iant2
Visibility:
Public.

Description

cmd/ld: take section symbols' value into account for PE ld -r could generate multiple section symbols for the same section, but with different values, we have to take that into account. Fixes issue 3322. Part of issue 3261. For CL 5822049.

Patch Set 1 #

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

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

Patch Set 4 : diff -r 30c7fa04aef2 https://code.google.com/p/go/ #

Total comments: 1

Patch Set 5 : diff -r d77371d5c280 https://code.google.com/p/go/ #

Total comments: 1

Patch Set 6 : diff -r 316890203045 https://code.google.com/p/go/ #

Patch Set 7 : diff -r 1734b211731d https://code.google.com/p/go/ #

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

Messages

Total messages: 18
minux1
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
12 years, 1 month ago (2012-03-15 17:40:14 UTC) #1
minux1
Tester welcome for this CL and CL 5822049 on all platforms, esp. Windows. These two ...
12 years, 1 month ago (2012-03-15 17:49:19 UTC) #2
minux1
I'd also ask if why only R_X86_64_64 should take symbol value into account? I've tried ...
12 years, 1 month ago (2012-03-15 18:08:14 UTC) #3
minux1
Wait a minute, this CL didn't fix the problem on windows/386.
12 years, 1 month ago (2012-03-15 18:39:21 UTC) #4
iant
http://codereview.appspot.com/5823059/diff/3005/src/cmd/ld/ldpe.c File src/cmd/ld/ldpe.c (right): http://codereview.appspot.com/5823059/diff/3005/src/cmd/ld/ldpe.c#newcode304 src/cmd/ld/ldpe.c:304: rp->add += obj->pesym[symindex].value; It seems to me that setting ...
12 years, 1 month ago (2012-03-15 20:03:48 UTC) #5
minux1
PTAL. On 2012/03/15 20:03:48, iant wrote: > http://codereview.appspot.com/5823059/diff/3005/src/cmd/ld/ldpe.c > File src/cmd/ld/ldpe.c (right): > > http://codereview.appspot.com/5823059/diff/3005/src/cmd/ld/ldpe.c#newcode304 ...
12 years, 1 month ago (2012-03-16 10:38:33 UTC) #6
iant
http://codereview.appspot.com/5823059/diff/10001/src/cmd/ld/ldpe.c File src/cmd/ld/ldpe.c (right): http://codereview.appspot.com/5823059/diff/10001/src/cmd/ld/ldpe.c#newcode306 src/cmd/ld/ldpe.c:306: if (obj->pesym[symindex].name[0] == '.') In a PE file, a ...
12 years, 1 month ago (2012-03-16 14:04:00 UTC) #7
rsc
LGTM but wait for iant.
12 years, 1 month ago (2012-03-16 16:23:43 UTC) #8
minux1
This is the relevant details of hh.o (you can reproduce it by using the attachment ...
12 years, 1 month ago (2012-03-16 17:17:12 UTC) #9
iant2
minux <minux.ma@gmail.com> writes: > I don't know how to distinguish the second .rdata from other ...
12 years, 1 month ago (2012-03-16 19:16:17 UTC) #10
minux1
On Sat, Mar 17, 2012 at 3:16 AM, Ian Lance Taylor <iant@google.com> wrote: > >> ...
12 years, 1 month ago (2012-03-17 05:10:26 UTC) #11
iant2
On Mar 16, 2012 10:10 PM, "minux" <minux.ma@gmail.com> wrote: > > > On Sat, Mar ...
12 years, 1 month ago (2012-03-17 20:02:58 UTC) #12
minux1
On Sun, Mar 18, 2012 at 4:02 AM, Ian Lance Taylor <iant@google.com> wrote > > ...
12 years, 1 month ago (2012-03-18 07:40:06 UTC) #13
rsc
Same as before: we're going to have to do Go 1 without fixing the Windows ...
12 years, 1 month ago (2012-03-26 19:37:00 UTC) #14
minux1
ping.
12 years, 1 month ago (2012-04-06 07:33:23 UTC) #15
rsc
Leaving for Ian so you can finish the discussion about the right test to use ...
12 years ago (2012-04-10 20:16:29 UTC) #16
iant
LGTM It's not really the right approach, but other code uses the same test for ...
12 years ago (2012-04-16 22:12:33 UTC) #17
minux1
11 years, 11 months ago (2012-05-22 18:27:57 UTC) #18
*** Submitted as http://code.google.com/p/go/source/detail?r=b54f4da6d7be ***

cmd/ld: take section symbols' value into account for PE
    ld -r could generate multiple section symbols for the same section, 
but with different values, we have to take that into account.
    Fixes issue 3322.
    Part of issue 3261.
    For CL 5822049.

R=golang-dev, iant, rsc, iant
CC=golang-dev
http://codereview.appspot.com/5823059
Sign in to reply to this message.

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