blob: 581d717070ce6ab66e29445bb479f031c021f5f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- gas/config/tc-sh.c 2000/10/05 05:43:36 1.1
+++ gas/config/tc-sh.c 2000/12/22 11:28:47 1.2
@@ -1924,7 +1924,7 @@
case BFD_RELOC_SH_PCDISP12BY2:
val /= 2;
- if (val < -0x800 || val >= 0x7ff)
+ if (val < -0x800 || val > 0x7ff)
as_bad_where (fixP->fx_file, fixP->fx_line, "pcrel too far");
buf[lowbyte] = val & 0xff;
buf[highbyte] |= (val >> 8) & 0xf;
|