This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] Improved diagnostic for oversized BFD_RELOC_ARM_OFFSET_IMM8 offsets
- From: Mark Shinwell <shinwell at codesourcery dot com>
- To: binutils at sourceware dot org
- Date: Sat, 05 May 2007 12:57:06 +0100
- Subject: [PATCH] Improved diagnostic for oversized BFD_RELOC_ARM_OFFSET_IMM8 offsets
This patch improves the diagnostic for oversized offsets to
instructions yielding BFD_RELOC_ARM_OFFSET_IMM8. The existing
diagnostic is misleading in situations such as "ldrd r2, [r1], #328".
OK to apply?
Mark
--
2007-05-05 Mark Shinwell <shinwell@codesourcery.com>
gas/
* config/tc-arm.c (md_apply_fix): Generate more accurate
diagnostic when 8-bit immediate range is exceeded for
BFD_RELOC_ARM_OFFSET_IMM8.
Index: gas/config/tc-arm.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-arm.c,v
retrieving revision 1.324
diff -U3 -p -r1.324 tc-arm.c
--- gas/config/tc-arm.c 19 Apr 2007 17:06:20 -0000 1.324
+++ gas/config/tc-arm.c 5 May 2007 11:50:43 -0000
@@ -17922,7 +17922,7 @@ md_apply_fix (fixS * fixP,
as_bad_where (fixP->fx_file, fixP->fx_line,
_("invalid literal constant: pool needs to be
closer"));
else
- as_bad (_("bad immediate value for half-word offset (%ld)"),
+ as_bad (_("bad immediate value for 8-bit offset (%ld)"),
(long) value);
break;
}