From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12984 invoked by alias); 4 Nov 2004 16:00:54 -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 12968 invoked from network); 4 Nov 2004 16:00:52 -0000 Received: from unknown (HELO relay02.pair.com) (209.68.5.16) by sourceware.org with SMTP; 4 Nov 2004 16:00:52 -0000 Received: (qmail 94795 invoked from network); 4 Nov 2004 16:00:51 -0000 Received: from pd9516f28.dip.t-dialin.net (HELO ?127.0.0.1?) (217.81.111.40) by relay02.pair.com with SMTP; 4 Nov 2004 16:00:51 -0000 X-pair-Authenticated: 217.81.111.40 Message-ID: <418A5235.8000203@lopatic.de> Date: Thu, 04 Nov 2004 16:00:00 -0000 From: Thomas Lopatic User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) MIME-Version: 1.0 To: Ian Lance Taylor CC: Thomas Lopatic , binutils@sources.redhat.com Subject: Re: mipsel-linux and --export-dynamic References: <418A17A6.9090803@lopatic.de> In-Reply-To: X-Enigmail-Version: 0.84.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-11/txt/msg00088.txt.bz2 Ian, Daniel, Thanks a lot for shedding some light on this! I was just a bit confused because the native Linux linker on my system by default only puts the unresolved (imported) symbols, e.g. _printf, into the dynamic symbol table. I expected the MIPS cross-linker to behave in the same way. So, I thought that this was - quite obviously :-) - a quirk. 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.) 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. Quite impressive what you can do with "ld". Thanks again, -Thomas