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

Issue 4511041: code review 4511041: ld: fix alignment of rodata section on Plan 9 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 10 months ago by ality
Modified:
13 years, 10 months ago
Reviewers:
CC:
rsc, paulzhol, taruti, golang-dev
Visibility:
Public.

Description

ld: fix alignment of rodata section on Plan 9 This was causing a panic in the reflect package since type.* pointers with their low bits set are assumed to have certain flags set that disallow the use of reflection. Thanks to Pavel and Taru for help tracking down this bug.

Patch Set 1 #

Patch Set 2 : diff -r 23f3b4db4dd1 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 23f3b4db4dd1 https://go.googlecode.com/hg/ #

Total comments: 1

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

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

Messages

Total messages: 6
ality
Hello rsc, paulzhol, taruti (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 10 months ago (2011-05-07 12:21:18 UTC) #1
paulzhol
http://codereview.appspot.com/4511041/diff/3001/src/cmd/ld/data.c File src/cmd/ld/data.c (left): http://codereview.appspot.com/4511041/diff/3001/src/cmd/ld/data.c#oldcode902 src/cmd/ld/data.c:902: if(HEADTYPE == Hplan9x32) { the curly braces can go ...
13 years, 10 months ago (2011-05-07 15:53:55 UTC) #2
rsc
LGTM please drop the braces and hg mail
13 years, 10 months ago (2011-05-11 15:58:32 UTC) #3
ality
Hello rsc, paulzhol, taruti (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 10 months ago (2011-05-11 21:14:51 UTC) #4
ality
Sorry about the delay. I've been busy. Thanks, Anthony
13 years, 10 months ago (2011-05-11 21:17:22 UTC) #5
rsc
13 years, 10 months ago (2011-05-12 03:52:09 UTC) #6
*** Submitted as http://code.google.com/p/go/source/detail?r=09a28faa1555 ***

ld: fix alignment of rodata section on Plan 9

This was causing a panic in the reflect package
since type.* pointers with their low bits set are
assumed to have certain flags set that disallow
the use of reflection.

Thanks to Pavel and Taru for help tracking down
this bug.

R=rsc, paulzhol, taruti
CC=golang-dev
http://codereview.appspot.com/4511041

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