From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28489 invoked by alias); 3 Mar 2005 01:02:21 -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 28441 invoked from network); 3 Mar 2005 01:02:15 -0000 Received: from unknown (205.217.158.180) by sourceware.org with QMTP; 3 Mar 2005 01:02:15 -0000 Received: (qmail 11058 invoked by uid 10); 3 Mar 2005 01:02:14 -0000 Received: (qmail 20054 invoked by uid 500); 3 Mar 2005 01:02:06 -0000 To: David Daney Cc: binutils@sourceware.org Subject: Re: Committing MIPS -mno-shared patch References: <20041210194800.6490.qmail@gossamer.airs.com> <42263E58.5060005@avtrex.com> From: Ian Lance Taylor Date: Thu, 03 Mar 2005 01:02:00 -0000 In-Reply-To: <42263E58.5060005@avtrex.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2005-03/txt/msg00085.txt.bz2 David Daney writes: > -mno-shared appears to be broken on o32 LE for large programs. > > I have a large program composed of about 250,000 lines of code in > about 1000 source files (mostly java but with some C and C++ thrown in > for good measure). Linking of this program causes the linker to > create multiple GOTs. > > When building with -Wa,-mno-shared there is some as of yet > undetermined problem with the resulting executable preventing it from > running. I'm not terribly surprised. I'm not sure just how the multi-GOT code works, so I'm not surprised that it breaks with -mno-shared. The -mno-shared code will need to somehow know what to set $gp to. I think I mentioned this issue when I first proposed the patch. Ian