This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] [MIPS] Improve interlinking error message
- From: Richard Sandiford <rdsandiford at googlemail dot com>
- To: Catherine Moore <clm at codesourcery dot com>
- Cc: binutils at sourceware dot org
- Date: Wed, 04 Aug 2010 20:34:01 +0100
- Subject: Re: [PATCH] [MIPS] Improve interlinking error message
- References: <4C584722.5030607@codesourcery.com>
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