[PATCH] [MIPS] Improve interlinking error message

Richard Sandiford rdsandiford@googlemail.com
Wed Aug 4 20:22:00 GMT 2010


Catherine Moore <clm@codesourcery.com> writes:
> This patch improves the error message that is displayed if an assembly 
> language routine tries to use an invalid jump instruction to change modes.

Thanks for doing this.  I agree the current message is poor, and your
patch is definitely an improvement.

As an alternative, what do you think about:

    Jumps between ISA modes must be performed by JAL or JALX.

or:

    Direct jumps between ISA modes are not allowed.

In either case you could add:

    ; consider recompiling with interlinking enabled

or (if we don't mind the MIPS16 reference):

    ; consider recompiling with -minterlink-mips16

The patch is OK with any of these changes, or as it stands.

Richard



More information about the Binutils mailing list