From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15599 invoked by alias); 4 Nov 2004 16:04:26 -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 15592 invoked from network); 4 Nov 2004 16:04:26 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 4 Nov 2004 16:04:26 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1CPk64-0006wI-LT; Thu, 04 Nov 2004 11:04:24 -0500 Date: Thu, 04 Nov 2004 16:04:00 -0000 From: Daniel Jacobowitz To: Thomas Lopatic Cc: Ian Lance Taylor , binutils@sources.redhat.com Subject: Re: mipsel-linux and --export-dynamic Message-ID: <20041104160424.GA26601@nevyn.them.org> Mail-Followup-To: Thomas Lopatic , Ian Lance Taylor , binutils@sources.redhat.com References: <418A17A6.9090803@lopatic.de> <418A5235.8000203@lopatic.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <418A5235.8000203@lopatic.de> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-11/txt/msg00090.txt.bz2 On Thu, Nov 04, 2004 at 05:00:53PM +0100, Thomas Lopatic wrote: > I cannot verify this right now, but it may very well be the case that > not all symbols got exported. I just noticed that a lot of the > externally visible symbols were in the dynamic symbol table. And I > concluded that the linker was behaving as if "--export-dynamic" had been > specified. (I used "ld" directly, not via the GCC driver.) Please - do not do this! GCC knows a great deal about how to invoke ld; if you need to pass extra options it will let you do that too. Most of the frequently reported bugs involving dynamic symbols, shared libraries, et cetera are cured by letting the GCC driver do its work. > I've had a look at the documentation for version scripts and for the > visibility attribute and for me version scripts will be the way to go in > this case. You will get marginally better performance if the compiler does this rather than a version script. -- Daniel Jacobowitz