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

Issue 4638050: code review 4638050: ld: don't attempt to build dynamic sections unnecessarily (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 9 months ago by niemeyer
Modified:
13 years, 5 months ago
Reviewers:
CC:
golang-dev, rsc, gustavo_niemeyer.net
Visibility:
Public.

Description

ld: don't attempt to build dynamic sections unnecessarily This prevents ld from generating zeroed symtab entries for sections that aren't going to be generated because dynamic linkage has been disabled (-d was used or no dynamic libs were seen). Even though they were not explicitly added by doelf, the section creation process was making them reachable again. The windows head is being disconsidered for this because apparently it's not taking into account debug['d']. This makes elflint 0.1% happier.

Patch Set 1 #

Patch Set 2 : code review 4638050: ld: don't attempt to build dynamic sections unnecessarily #

Patch Set 3 : diff -r 812bb69a9ec1 https://go.googlecode.com/hg/ #

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

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

Messages

Total messages: 5
niemeyer
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 9 months ago (2011-06-21 04:46:28 UTC) #1
rsc
Did you check this on the Mac?
13 years, 9 months ago (2011-06-21 16:12:15 UTC) #2
gustavo_niemeyer.net
> Did you check this on the Mac? I haven't run tests on a Mac ...
13 years, 9 months ago (2011-06-21 18:04:06 UTC) #3
rsc
good enough; i can test before submitting
13 years, 9 months ago (2011-06-21 18:11:30 UTC) #4
rsc
13 years, 9 months ago (2011-06-22 19:12:27 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=eae3ec259a99 ***

ld: don't attempt to build dynamic sections unnecessarily

This prevents ld from generating zeroed symtab entries for
sections that aren't going to be generated because dynamic
linkage has been disabled (-d was used or no dynamic libs
were seen).  Even though they were not explicitly added by
doelf, the section creation process was making them
reachable again.

The windows head is being disconsidered for this because
apparently it's not taking into account debug['d'].

This makes elflint 0.1% happier.

R=golang-dev, rsc, gustavo
CC=golang-dev
http://codereview.appspot.com/4638050

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