Fix bug in interwork stubs from thumb to arm
authorNick Clifton <nickc@redhat.com>
Thu, 13 Jan 2000 22:55:12 +0000 (22:55 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 13 Jan 2000 22:55:12 +0000 (22:55 +0000)
bfd/ChangeLog
bfd/elf32-arm.h

index ff57158b5f9dab5c6153e32a32c33771c380602b..c37ff0eb02d8a21272b83bf321c6e9f56c8c49d1 100644 (file)
@@ -1,3 +1,8 @@
+2000-01-13  Nick Clifton  <nickc@cygnus.com>
+
+       * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
+       interwork thumb to arm stub.
+
 2000-01-13  Timothy Wall (twall@tiac.net>
 
        * archures.c (bfd_octets_per_byte): New function: Return
index 095e0cdf2ef84993b34fafff5bb73df3597a87b9..6efc7c834d0ada518b4e3c08740dae629ab723b3 100644 (file)
@@ -894,7 +894,7 @@ elf32_thumb_to_arm_stub (info, name, input_bfd, output_bfd, input_section,
     + my_offset
     - (input_section->output_offset
        + offset + addend)
-    - 4;
+    - 8;
 
   tmp = bfd_get_32 (input_bfd, hit_data
                    - input_section->vma);