aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-h8300.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2000-03-13 23:57:25 +0000
committerJeff Law <law@redhat.com>2000-03-13 23:57:25 +0000
commit003e46d0ac0cdb5818845258d70998298ec0b349 (patch)
treea95a16b6bb3c95cb637ded6b0fe4ce57728abc86 /bfd/coff-h8300.c
parent0f831eb384260fc7422985eea4c10f847891800e (diff)
downloadgdb-003e46d0ac0cdb5818845258d70998298ec0b349.zip
gdb-003e46d0ac0cdb5818845258d70998298ec0b349.tar.gz
gdb-003e46d0ac0cdb5818845258d70998298ec0b349.tar.bz2
* 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/coff-h8300.c b/bfd/coff-h8300.c
index 3c1125c..3d54f20 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);