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


I'm going to commit this version:

Direct jumps between ISA modes are not allowed; consider recompiling with interlinking enabled.

As Maciej mentioned, the microMIPS port is affected by the text of the error message.

Thanks,
Catherine

Richard Sandiford wrote:
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]