This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Committing MIPS -mno-shared patch
- From: Ian Lance Taylor <ian at airs dot com>
- To: David Daney <ddaney at avtrex dot com>
- Cc: binutils at sourceware dot org
- Date: 02 Mar 2005 20:02:06 -0500
- Subject: Re: Committing MIPS -mno-shared patch
- References: <20041210194800.6490.qmail@gossamer.airs.com><42263E58.5060005@avtrex.com>
David Daney <ddaney@avtrex.com> 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