* coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity

check for R_MOVL2.
This commit is contained in:
Jeff Law 2000-03-13 23:57:25 +00:00
parent 0f831eb384
commit 003e46d0ac
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2000-03-13 Kazu Hirata <kazu@hxi.com>
* coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
check for R_MOVL2.
2000-03-11 Alan Modra <alan@spri.levels.unisa.edu.au>
* ieee.c (ieee_archive_p): Return bfd_error_wrong_format on

View File

@ -796,7 +796,7 @@ h8300_reloc16_extra_cases (abfd, link_info, link_order, reloc, data, src_ptr,
value = bfd_coff_reloc16_get_value (reloc, link_info, input_section);
/* Sanity check. */
if (value < 0x8000 || value > 0xff8000)
if (value <= 0x7fff || value >= 0xff8000)
{
/* Insert the 16bit value into the proper location. */
bfd_put_16 (abfd, value, data + dst_address);