Committing MIPS -mno-shared patch

Ian Lance Taylor ian@airs.com
Thu Mar 3 01:02:00 GMT 2005


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



More information about the Binutils mailing list