projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebeeafe
)
Kaz Kojima's BFD_RELOC_SH_PCDISP12BY2 fix.
author
Alan Modra
<amodra@gmail.com>
Tue, 31 Oct 2000 12:33:13 +0000
(12:33 +0000)
committer
Alan Modra
<amodra@gmail.com>
Tue, 31 Oct 2000 12:33:13 +0000
(12:33 +0000)
gas/ChangeLog
patch
|
blob
|
history
gas/config/tc-sh.c
patch
|
blob
|
history
diff --git
a/gas/ChangeLog
b/gas/ChangeLog
index cfefa36184d147e4ec01d611464ca861c4dbd80c..bb239f2209e6d9d8d44da93f0478c8b05f98bdbb 100644
(file)
--- a/
gas/ChangeLog
+++ b/
gas/ChangeLog
@@
-1,3
+1,7
@@
+2000-10-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
+
+ * config/tc-sh.c (md_apply_fix [BFD_RELOC_SH_PCDISP12BY2]): Allow 4094.
+
2000-10-31 Bernd Schmidt <bernds@redhat.co.uk>
* tc-ia64.c (extra_goodness): Only prefer F in slot 1 and B in slot 2.
diff --git
a/gas/config/tc-sh.c
b/gas/config/tc-sh.c
index 645397e8b237099cbeed9c19f88b17faaffc9fa1..0f9ecdf4a6de36455dac9f9c61ccf9c2e8fa4f33 100644
(file)
--- 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;