From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1688 invoked by alias); 14 Dec 2011 11:15:47 -0000 Received: (qmail 1674 invoked by uid 22791); 14 Dec 2011 11:15:45 -0000 X-SWARE-Spam-Status: No, hits=-3.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from bar.sig21.net (HELO bar.sig21.net) (80.81.252.164) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 14 Dec 2011 11:15:32 +0000 Received: from p5099b351.dip0.t-ipconnect.de ([80.153.179.81] helo=zzz.local) by bar.sig21.net with esmtpsa (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.69) (envelope-from ) id 1Ramo6-0007Xi-16; Wed, 14 Dec 2011 12:15:31 +0100 Received: from js by zzz.local with local (Exim 4.77) (envelope-from ) id 1Ramo2-0003Al-3J; Wed, 14 Dec 2011 12:15:26 +0100 Date: Wed, 14 Dec 2011 11:15:00 -0000 From: Johannes Stezenbach To: "Yann E. MORIN" Cc: crossgcc@sourceware.org Subject: Re: gold vs. CT_STATIC_TOOLCHAIN Message-ID: <20111214111524.GA27754@sig21.net> References: <20111202132450.GA24105@sig21.net> <201112140109.21263.yann.morin.1998@anciens.enib.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201112140109.21263.yann.morin.1998@anciens.enib.fr> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-21-Score: -2.9 (--) X-Spam-21-Report: No, score=-2.9 required=8.0 tests=ALL_TRUSTED=-1,BAYES_00=-1.9 autolearn=ham X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2011-12/txt/msg00061.txt.bz2 On Wed, Dec 14, 2011 at 01:09:21AM +0100, Yann E. MORIN wrote: > Johannes, All, > > On Friday 02 December 2011 14:24:50 Johannes Stezenbach wrote: > > with CT_STATIC_TOOLCHAIN ./scripts/build/binutils/binutils.sh > > adds -all-static to LDFLAGS. However, -all-static is a libtool > > option and gold is not libtoolized. Maybe cg-ng should just > > disable gold when CT_STATIC_TOOLCHAIN is selected? > > It works here for me: > > $ file bin/armeb-unknown-linux-uclibcgnueabi-ld.gold > bin/armeb-unknown-linux-uclibcgnueabi-ld.gold: ELF 64-bit LSB executable, > x86-64, version 1 (GNU/Linux), statically linked, for GNU/Linux 2.6.18, > not stripped > > So, it is a statically-linked executable, exactly what we wanted. > > How does it break for you? I didn't save the log so I'd have to rebuild to find out (which I'll do asap), but IIRC it was similar to $ gcc foo.c -all-static gcc: error: unrecognized option ‘-all-static’ In case it matters, I used the newest available binutils, (IIRC binutils-2.21.53 in ct-ng-1.13.2, and now 2.22 with ct-ng from hg. Thanks Johannes -- For unsubscribe information see http://sourceware.org/lists.html#faq