PR gas/11973
authorNick Clifton <nickc@redhat.com>
Wed, 8 Sep 2010 11:07:39 +0000 (11:07 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 8 Sep 2010 11:07:39 +0000 (11:07 +0000)
        * config/tc-mn10300.c (md_convert_frag): Zero out top two bytes of
        long call instruction's displacement.

gas/ChangeLog
gas/config/tc-mn10300.c

index 6774434b8a478bd09e727bf20e1553c8d3cd4bcd..41c038371a08e09b9e506a060eb3b3587154ab52 100644 (file)
@@ -1,3 +1,9 @@
+2010-09-08  Nick Clifton  <nickc@redhat.com>
+
+       PR gas/11973
+       * config/tc-mn10300.c (md_convert_frag): Zero out top two bytes of
+       long call instruction's displacement.
+
 2010-09-03  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR gas/11974
index 74ede3ae55b5a8e344b9bd28416646337a7103e9..bf77aa9527d792f0e1f62e9544a4b1f2decf5c93 100644 (file)
@@ -689,6 +689,8 @@ md_convert_frag (bfd *abfd ATTRIBUTE_UNUSED,
       fragP->fr_literal[offset] = 0xdd;
       fragP->fr_literal[offset + 5] = fragP->fr_literal[offset + 3];
       fragP->fr_literal[offset + 6] = fragP->fr_literal[offset + 4];
+      fragP->fr_literal[offset + 3] = 0;
+      fragP->fr_literal[offset + 4] = 0;
 
       fix_new (fragP, fragP->fr_fix + 1, 4, fragP->fr_symbol,
               fragP->fr_offset + 1, 1, BFD_RELOC_32_PCREL);