Kaz Kojima's BFD_RELOC_SH_PCDISP12BY2 fix.
This commit is contained in:
parent
ebeeafe61c
commit
8637c0456a
2 changed files with 5 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue