* coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
authorJeff Law <law@redhat.com>
Mon, 13 Mar 2000 23:57:25 +0000 (23:57 +0000)
committerJeff Law <law@redhat.com>
Mon, 13 Mar 2000 23:57:25 +0000 (23:57 +0000)
        check for R_MOVL2.

bfd/ChangeLog
bfd/coff-h8300.c

index a242248109205127e6b3852f90857c0fd3940dfd..5247acf0c2d3c1984a61e2c440c8049847f19602 100644 (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 
index 3c1125c3dd8c8a6c3c5e8d296431e96dd8a04aa6..3d54f20a926cf05f8b8508e39218825b1387c01f 100644 (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);
This page took 0.027916 seconds and 4 git commands to generate.