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

Issue 8602044: code review 8602044: cmd/ld: fix inconsistency in internal linking of data s... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years ago by remyoudompheng
Modified:
11 years ago
Reviewers:
minux1, capnm
CC:
golang-dev, iant, ajstarks, dave_cheney.net, r
Visibility:
Public.

Description

cmd/ld: fix inconsistency in internal linking of common symbols. Some variables declared in C could end up as undefined symbols in the final binary and have null address. Fixes issue 5114. Fixes issue 5227.

Patch Set 1 #

Patch Set 2 : diff -r 4a712e80e9b1 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 4a712e80e9b1 https://go.googlecode.com/hg/ #

Total comments: 1

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

Patch Set 5 : diff -r 4a712e80e9b1 https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r 4a712e80e9b1 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -0 lines) Patch
M misc/cgo/test/cgo_test.go View 1 1 chunk +1 line, -0 lines 0 comments Download
A misc/cgo/test/issue5227.go View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
M src/cmd/ld/lib.c View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 12
remyoudompheng
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
11 years ago (2013-04-09 22:42:05 UTC) #1
remyoudompheng
I may not know the appropriate vocabulary, feel free to suggest an appropriate rewording. The ...
11 years ago (2013-04-09 22:42:58 UTC) #2
iant
LGTM In the change description, s/data/common/ Thanks. https://codereview.appspot.com/8602044/diff/4004/misc/cgo/test/issue5227.go File misc/cgo/test/issue5227.go (right): https://codereview.appspot.com/8602044/diff/4004/misc/cgo/test/issue5227.go#newcode5 misc/cgo/test/issue5227.go:5: // Issue ...
11 years ago (2013-04-10 00:04:20 UTC) #3
ajstarks
Also fixes issue 5114 On Tuesday, April 9, 2013 6:42:05 PM UTC-4, Rémy wrote: > ...
11 years ago (2013-04-10 02:29:15 UTC) #4
dave_cheney.net
This built fine on my pandaboard linux/arm
11 years ago (2013-04-10 04:42:55 UTC) #5
remyoudompheng
11 years ago (2013-04-10 05:07:40 UTC) #6
remyoudompheng
Done. I need a LGTM from r or adg right?
11 years ago (2013-04-10 05:08:11 UTC) #7
r
LGTM
11 years ago (2013-04-10 05:11:10 UTC) #8
r
And now you have it. Thanks. -rob
11 years ago (2013-04-10 05:11:39 UTC) #9
remyoudompheng
*** Submitted as https://code.google.com/p/go/source/detail?r=b27b1ff18f39 *** cmd/ld: fix inconsistency in internal linking of common symbols. Some ...
11 years ago (2013-04-10 05:16:12 UTC) #10
capnm
Thanks to all, nice to wake up and see this fixed. Now I can move ...
11 years ago (2013-04-10 07:47:04 UTC) #11
minux1
11 years ago (2013-04-10 09:18:49 UTC) #12
Thank you for fixing this!

On Wed, Apr 10, 2013 at 1:16 PM,  <remyoudompheng@gmail.com> wrote:
> *** Submitted as
> https://code.google.com/p/go/source/detail?r=b27b1ff18f39 ***
>
> cmd/ld: fix inconsistency in internal linking of common symbols.
>
>
> Some variables declared in C could end up as undefined symbols
> in the final binary and have null address.
>
> Fixes issue 5114.
> Fixes issue 5227.
Sign in to reply to this message.

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