diff options
author | Jeff Law <law@redhat.com> | 2000-03-13 23:57:25 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 2000-03-13 23:57:25 +0000 |
commit | 5a679deb062deacb0cb14b946ad69391f5d27b80 (patch) | |
tree | 8ed9f58c3ab8b26b2b6e327afccd6f82ede302e5 /bfd | |
parent | 76bc2a02ee82e1a8a7eb2a3d008e2187d7d7cb96 (diff) | |
download | binutils-redhat-5a679deb062deacb0cb14b946ad69391f5d27b80.tar.gz |
* coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
check for R_MOVL2.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/coff-h8300.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a242248109..5247acf0c2 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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 diff --git a/bfd/coff-h8300.c b/bfd/coff-h8300.c index 3c1125c3dd..3d54f20a92 100644 --- a/bfd/coff-h8300.c +++ b/bfd/coff-h8300.c @@ -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); |