From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 985 invoked by alias); 20 May 2005 07:28:02 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 894 invoked from network); 20 May 2005 07:27:51 -0000 Received: from unknown (HELO omta04sl.mx.bigpond.com) (144.140.93.156) by sourceware.org with SMTP; 20 May 2005 07:27:51 -0000 Received: from grove.modra.org ([144.136.167.90]) by omta04sl.mx.bigpond.com with ESMTP id <20050520072750.OTJU7650.omta04sl.mx.bigpond.com@grove.modra.org> for ; Fri, 20 May 2005 07:27:50 +0000 Received: by bubble.grove.modra.org (Postfix, from userid 500) id BB5061AA845; Fri, 20 May 2005 16:57:50 +0930 (CST) Date: Fri, 20 May 2005 09:54:00 -0000 From: Alan Modra To: Paul Koning Cc: binutils@sources.redhat.com Subject: Re: Unintellegible ld error messages Message-ID: <20050520072750.GJ27573@bubble.grove.modra.org> Mail-Followup-To: Paul Koning , binutils@sources.redhat.com References: <17026.22346.789514.57742@gargle.gargle.HOWL> <20050511191110.GA470@nevyn.them.org> <17029.942.76640.325068@gargle.gargle.HOWL> <20050513195035.GA19560@nevyn.them.org> <17029.2332.365233.194854@gargle.gargle.HOWL> <20050514015015.GC27573@bubble.grove.modra.org> <17031.38996.793456.366778@gargle.gargle.HOWL> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17031.38996.793456.366778@gargle.gargle.HOWL> User-Agent: Mutt/1.4i X-SW-Source: 2005-05/txt/msg00611.txt.bz2 On Sun, May 15, 2005 at 02:43:32PM -0400, Paul Koning wrote: > >>>>> "Alan" == Alan Modra writes: > Alan> _Unwind_GetIP as a hidden symbol in libgcc.a is not the > Alan> problem. If you built libstdc++.so linked against libgcc_s.so, > Alan> then when linking using libstdc++.so you need to have > Alan> libgcc_s.so available, and, importantly, libgcc_s.so must be > Alan> linked before libgcc.a if both are specified. > > Alan> If you built libstdc++.so only linked against libgcc.a, then > Alan> you can use libstdc++.so like that too. > > Interesting. objdump says that libstdc++ requires libm, but not > libgcc_s. And libm doesn't require anything. Hmm. Perhaps you have hit a ld bug, but it seems to me that you have given confliction information. If "The offending library is libstdc++" then libstdc++.so contains an unsatisfied reference to _Unwind_GetIP, which means libstdc++.so ought to refer to libgcc_s.so in a DT_NEEDED tag. -- Alan Modra IBM OzLabs - Linux Technology Centre