From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15207 invoked by alias); 2 Sep 2011 08:46:35 -0000 Received: (qmail 15194 invoked by uid 22791); 2 Sep 2011 08:46:32 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_BJ,TW_JC,TW_XX X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 02 Sep 2011 08:46:18 +0000 From: "afb at users dot sourceforge.net" To: gcc-bugs@gcc.gnu.org Subject: [Bug go/46986] Go is not supported on Darwin Date: Fri, 02 Sep 2011 08:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: go X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: afb at users dot sourceforge.net X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ian at airs dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-09/txt/msg00103.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D46986 --- Comment #10 from Anders F Bj=C3=B6rklund 2011-09-02 08:45:22 UTC --- Here's my attempt at a native version. (of that "gox-extract" shell script) Instead of the default variant: OBJCOPY=3D${OBJCOPY:-objcopy} $OBJCOPY -j .go_export $1 $2 The Darwin version could be this: OTOOL=3D${OTOOL:-otool} $OTOOL -s __GNU_GO __go_export $1 | grep -v "^$1:" | grep -v "Contents of (__GNU_GO,__go_export) section" | cut -f 2- | tr -d ' ' | xxd -r -p - $2 It doesn't include the objcopy header, but I believe that is skipped anyway ?