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

Issue 119460043: code review 119460043: cmd/go: pass --build-id=none when generating a cgo .o (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 8 months ago by iant
Modified:
9 years, 8 months ago
Reviewers:
gobot, bradfitz
CC:
golang-codereviews, bradfitz
Visibility:
Public.

Description

cmd/go: pass --build-id=none when generating a cgo .o Some systems, like Ubuntu, pass --build-id when linking. The effect is to put a note in the output file. This is not useful when generating an object file with the -r option, as it eventually causes multiple build ID notes in the final executable, all but one of which are for tiny portions of the file and are therefore useless. Disable that by passing an explicit --build-id=none when linking with -r on systems that might do this.

Patch Set 1 #

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

Total comments: 2

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -3 lines) Patch
A misc/cgo/test/buildid_linux.go View 1 2 1 chunk +77 lines, -0 lines 0 comments Download
M misc/cgo/test/cgo_linux_test.go View 1 chunk +3 lines, -2 lines 0 comments Download
M src/cmd/go/build.go View 1 chunk +17 lines, -1 line 0 comments Download

Messages

Total messages: 6
iant
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
9 years, 8 months ago (2014-08-05 22:56:56 UTC) #1
bradfitz
LGTM I don't know linkers but comments are convincing enough. https://codereview.appspot.com/119460043/diff/20001/misc/cgo/test/buildid_linux.go File misc/cgo/test/buildid_linux.go (right): https://codereview.appspot.com/119460043/diff/20001/misc/cgo/test/buildid_linux.go#newcode19 ...
9 years, 8 months ago (2014-08-07 17:52:44 UTC) #2
iant
https://codereview.appspot.com/119460043/diff/20001/misc/cgo/test/buildid_linux.go File misc/cgo/test/buildid_linux.go (right): https://codereview.appspot.com/119460043/diff/20001/misc/cgo/test/buildid_linux.go#newcode19 misc/cgo/test/buildid_linux.go:19: f, err := elf.Open("/proc/self/exe") On 2014/08/07 17:52:44, bradfitz wrote: ...
9 years, 8 months ago (2014-08-07 19:37:17 UTC) #3
iant
*** Submitted as https://code.google.com/p/go/source/detail?r=7a2415f9f273 *** cmd/go: pass --build-id=none when generating a cgo .o Some systems, ...
9 years, 8 months ago (2014-08-07 19:38:42 UTC) #4
gobot
This CL appears to have broken the freebsd-386 builder. See http://build.golang.org/log/a00bc10e769c4b950a2356a76ef4b5542f70e2d5
9 years, 8 months ago (2014-08-07 20:02:00 UTC) #5
iant
9 years, 8 months ago (2014-08-07 20:47:24 UTC) #6
On Thu, Aug 7, 2014 at 1:02 PM,  <gobot@golang.org> wrote:
> This CL appears to have broken the freebsd-386 builder.
> See http://build.golang.org/log/a00bc10e769c4b950a2356a76ef4b5542f70e2d5
>
> https://codereview.appspot.com/119460043/

This one is real, will send a CL.

Ian
Sign in to reply to this message.

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