aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-sh.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-10-31 12:33:13 +0000
committerAlan Modra <amodra@gmail.com>2000-10-31 12:33:13 +0000
commit8637c0456a215e6f89fbb853ebb88485de5368df (patch)
treeb2929ef67d7bd25514475b4ec77b64e505f1d2a0 /gas/config/tc-sh.c
parentebeeafe61cc1f31bae03052de4c11daf2641c112 (diff)
downloadgdb-8637c0456a215e6f89fbb853ebb88485de5368df.zip
gdb-8637c0456a215e6f89fbb853ebb88485de5368df.tar.gz
gdb-8637c0456a215e6f89fbb853ebb88485de5368df.tar.bz2
Kaz Kojima's BFD_RELOC_SH_PCDISP12BY2 fix.
Diffstat (limited to 'gas/config/tc-sh.c')
-rw-r--r--gas/config/tc-sh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c
index 645397e..0f9ecdf 100644
--- a/gas/config/tc-sh.c
+++ b/gas/config/tc-sh.c
@@ -2876,7 +2876,7 @@ md_apply_fix (fixP, val)
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;