This is the mail archive of the binutils@sourceware.org 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: [PATCH] [MIPS] Improve interlinking error message


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


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