This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Committing MIPS -mno-shared patch


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]