From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20084 invoked by alias); 20 May 2005 09:54:01 -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 19982 invoked from network); 20 May 2005 09:53:51 -0000 Received: from unknown (HELO omta04sl.mx.bigpond.com) (144.140.93.156) by sourceware.org with SMTP; 20 May 2005 09:53:51 -0000 Received: from grove.modra.org ([144.136.167.90]) by omta04sl.mx.bigpond.com with ESMTP id <20050520095349.SQMZ7650.omta04sl.mx.bigpond.com@grove.modra.org>; Fri, 20 May 2005 09:53:49 +0000 Received: by bubble.grove.modra.org (Postfix, from userid 500) id A285B1AA843; Fri, 20 May 2005 19:23:49 +0930 (CST) Date: Fri, 20 May 2005 10:02:00 -0000 From: Alan Modra To: Jakub Jelinek Cc: binutils@sources.redhat.com Subject: Re: --as-needed handling of shared libraries that fail -Wl,-z,defs Message-ID: <20050520095349.GL27573@bubble.grove.modra.org> Mail-Followup-To: Jakub Jelinek , binutils@sources.redhat.com References: <20050519163716.GD22344@sunsite.mff.cuni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050519163716.GD22344@sunsite.mff.cuni.cz> User-Agent: Mutt/1.4i X-SW-Source: 2005-05/txt/msg00612.txt.bz2 On Thu, May 19, 2005 at 06:37:16PM +0200, Jakub Jelinek wrote: > --as-needed doesn't seem to try satisfy undefined references in shared > libraries: No, as the ld doc says it "causes DT_NEEDED tags to only be emitted for libraries that satisfy some symbol reference from regular objects which is undefined at the point that the library was linked." Note the "regular objects". I'm not sure now why I wrote it that way. It would be trivial to change, but I'd suggest using another option to control behaviour. -- Alan Modra IBM OzLabs - Linux Technology Centre