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 | f9d0211fee1c5cee1c26e75caa91b5d4f35c940a (patch) | |
tree | 71d261aab2b9f2ce152f6923880f56d9b1ac9243 /bfd/coff-h8300.c | |
parent | 2d513bbb9b475a6319a755f95deec35cdd2a76fc (diff) | |
download | gdb-f9d0211fee1c5cee1c26e75caa91b5d4f35c940a.tar.gz |
* coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
check for R_MOVL2.
Diffstat (limited to 'bfd/coff-h8300.c')
-rw-r--r-- | bfd/coff-h8300.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/coff-h8300.c b/bfd/coff-h8300.c index 3c1125c3dd8..3d54f20a926 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); |