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

Issue 60190043: code review 60190043: debug/macho: Add support for opening fat/universal binaries.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 9 months ago by Robert Sesek (Google)
Modified:
11 years, 9 months ago
Reviewers:
dave
CC:
golang-codereviews, dave_cheney.net, josharian, bradfitz
Visibility:
Public.

Description

debug/macho: Add support for opening fat/universal binaries. New testdata was created from existing using: $ lipo gcc-386-darwin-exec gcc-amd64-darwin-exec -create -output fat-gcc-386-amd64-darwin-exec Fixes issue 7250.

Patch Set 1 #

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

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

Total comments: 23

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

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

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

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

Patch Set 8 : diff -r b86948e4ec02 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -5 lines) Patch
A src/pkg/debug/macho/fat.go View 1 2 3 4 1 chunk +146 lines, -0 lines 0 comments Download
M src/pkg/debug/macho/file_test.go View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download
M src/pkg/debug/macho/macho.go View 1 1 chunk +8 lines, -5 lines 0 comments Download

Messages

Total messages: 27
Robert Sesek (Google)
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
11 years, 9 months ago (2014-02-04 23:59:53 UTC) #1
dave_cheney.net
Very nice. A small set of comments, mainly around testing. https://codereview.appspot.com/60190043/diff/60001/src/pkg/debug/macho/fat.go File src/pkg/debug/macho/fat.go (right): https://codereview.appspot.com/60190043/diff/60001/src/pkg/debug/macho/fat.go#newcode44 ...
11 years, 9 months ago (2014-02-05 00:43:40 UTC) #2
Robert Sesek (Google)
Thanks for the review! One question about your comments, otherwise addressed all. https://codereview.appspot.com/60190043/diff/60001/src/pkg/debug/macho/fat.go File src/pkg/debug/macho/fat.go ...
11 years, 9 months ago (2014-02-05 15:12:29 UTC) #3
dave_cheney.net
https://codereview.appspot.com/60190043/diff/60001/src/pkg/debug/macho/fat.go File src/pkg/debug/macho/fat.go (right): https://codereview.appspot.com/60190043/diff/60001/src/pkg/debug/macho/fat.go#newcode44 src/pkg/debug/macho/fat.go:44: ff := new(FatFile) On 2014/02/05 15:12:30, Robert Sesek (Google) ...
11 years, 9 months ago (2014-02-05 22:55:26 UTC) #4
Robert Sesek (Google)
https://codereview.appspot.com/60190043/diff/60001/src/pkg/debug/macho/fat.go File src/pkg/debug/macho/fat.go (right): https://codereview.appspot.com/60190043/diff/60001/src/pkg/debug/macho/fat.go#newcode44 src/pkg/debug/macho/fat.go:44: ff := new(FatFile) On 2014/02/05 22:55:26, dfc wrote: > ...
11 years, 9 months ago (2014-02-05 23:00:48 UTC) #5
dave_cheney.net
> On 6 Feb 2014, at 10:00, rsesek@google.com wrote: > > > https://codereview.appspot.com/60190043/diff/60001/src/pkg/debug/macho/fat.go > File ...
11 years, 9 months ago (2014-02-05 23:03:34 UTC) #6
Robert Sesek (Google)
On 2014/02/05 23:03:34, dfc wrote: > nee tends to upset people. I don't know the ...
11 years, 9 months ago (2014-02-06 01:58:43 UTC) #7
josharian
On 2014/02/06 01:58:43, Robert Sesek (Google) wrote: > On 2014/02/05 23:03:34, dfc wrote: > > ...
11 years, 9 months ago (2014-02-06 02:07:31 UTC) #8
Robert Sesek (Google)
Ping? On 2014/02/06 02:07:31, josharian wrote: > On 2014/02/06 01:58:43, Robert Sesek (Google) wrote: > ...
11 years, 9 months ago (2014-02-07 20:40:22 UTC) #9
dave_cheney.net
On 2014/02/07 20:40:22, Robert Sesek (Google) wrote: > Ping? I'm sorry, I let myself get ...
11 years, 9 months ago (2014-02-08 02:42:28 UTC) #10
dave_cheney.net
Opps, still need that CLA paperwork. I'll chase people about that now. On Sat, Feb ...
11 years, 9 months ago (2014-02-08 02:45:19 UTC) #11
dave_cheney.net
Hmm, odessa(~/go/src) % hg clpatch 60190043 add : patch did not apply cleanly Robert, could ...
11 years, 9 months ago (2014-02-10 00:01:27 UTC) #12
Robert Sesek (Google)
Hello golang-codereviews@googlegroups.com, dave@cheney.net, josharian@gmail.com (cc: golang-codereviews@googlegroups.com), Please take another look.
11 years, 9 months ago (2014-02-10 16:04:14 UTC) #13
Robert Sesek (Google)
On 2014/02/10 00:01:27, dfc wrote: > Hmm, > > odessa(~/go/src) % hg clpatch 60190043 > ...
11 years, 9 months ago (2014-02-10 16:04:55 UTC) #14
dave_cheney.net
Yup, brad has done the paperwork for you as a google employee. I think the ...
11 years, 9 months ago (2014-02-10 20:53:32 UTC) #15
dave_cheney.net
Crap. Hg doesn't like the binary diff. Andrew/Brad are you able to assist? This one ...
11 years, 9 months ago (2014-02-10 22:31:18 UTC) #16
Robert Sesek (Google)
I uploaded the binary file here: https://drive.google.com/a/google.com/file/d/0B6CbNbqSn1CxeXBBWHpFckFGZGs/edit?usp=sharing MD5 hash is ffa108d6667d7d630d8a7081c9de2e6b On 2014/02/10 22:31:18, dfc ...
11 years, 9 months ago (2014-02-10 23:04:58 UTC) #17
bradfitz
That file can't be accessed. I don't think the google.com domain lets you share outside ...
11 years, 9 months ago (2014-02-10 23:45:35 UTC) #18
Robert Sesek (Google)
On 2014/02/10 23:45:35, bradfitz wrote: > That file can't be accessed. I don't think the ...
11 years, 9 months ago (2014-02-11 00:01:23 UTC) #19
bradfitz
macho.NewFile takes an io.ReaderAt. Or you could always just de-dex it and right it to ...
11 years, 9 months ago (2014-02-11 00:14:46 UTC) #20
Robert Sesek (Google)
On 2014/02/11 00:14:46, bradfitz wrote: > macho.NewFile takes an io.ReaderAt. Yeah, but Open/OpenFat are also ...
11 years, 9 months ago (2014-02-11 00:21:37 UTC) #21
bradfitz
I actually have no preferences here. I was just throwing it out there. I'll defer ...
11 years, 9 months ago (2014-02-11 00:23:25 UTC) #22
dave_cheney.net
https://codereview.appspot.com/61720044 appears to work. Robert - can you please do `hg file -d 60190043 $GOROOT/src/pkg/debug/macho/testdata/fat-gcc-386-amd64-darwin-exec', ...
11 years, 9 months ago (2014-02-11 03:24:07 UTC) #23
Robert Sesek (Google)
Hello golang-codereviews@googlegroups.com, dave@cheney.net, josharian@gmail.com, bradfitz@golang.org (cc: golang-codereviews@googlegroups.com), Please take another look.
11 years, 9 months ago (2014-02-11 03:37:42 UTC) #24
dave_cheney.net
On 2014/02/11 03:37:42, Robert Sesek (Google) wrote: > Hello mailto:golang-codereviews@googlegroups.com, mailto:dave@cheney.net, mailto:josharian@gmail.com, > mailto:bradfitz@golang.org (cc: ...
11 years, 9 months ago (2014-02-11 03:45:22 UTC) #25
dave_cheney.net
ping, https://codereview.appspot.com/61720044/ is needed to land this change.
11 years, 9 months ago (2014-02-12 01:02:31 UTC) #26
dave_cheney.net
11 years, 9 months ago (2014-02-13 00:05:52 UTC) #27
*** Submitted as https://code.google.com/p/go/source/detail?r=3e6f1641fda8 *** debug/macho: Add support for opening fat/universal binaries. New testdata was created from existing using: $ lipo gcc-386-darwin-exec gcc-amd64-darwin-exec -create -output fat-gcc-386-amd64-darwin-exec Fixes issue 7250. LGTM=dave R=golang-codereviews, dave, josharian, bradfitz CC=golang-codereviews https://codereview.appspot.com/60190043 Committer: Dave Cheney <dave@cheney.net>
Sign in to reply to this message.

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