This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: RFC: Adding non-PIC executable support to MIPS
Daniel Jacobowitz <drow@false.org> writes:
> On Thu, Jul 17, 2008 at 08:29:42PM +0100, Richard Sandiford wrote:
>> No, you're probably right. Sorry for missing this.
>
> No trouble. I have found one caveat: MIPS16 call stubs generated by
> GCC sometimes make an indirect call through $1. When TARGET_ABICALLS,
> it should be possible to make the call through $25. Or if the
> instruction set does not permit, make the call through $1 but also set
> $25. I don't think I'll be able to test MIPS16 code generation, but
> I'll include a patch for this in the submission I'm preparing.
We should just call through $25 all the time, TARGET_ABICALLS or not.
(This is non-MIPS16 code.)
It should just be a case of s/@%/@^/ in the mips16-pic.patch. I can
test that and send an updated patch if you like.
Richard