2006-03-21 Paul Brook <paul@codesourcery.com>
authorPaul Brook <paul@codesourcery.com>
Tue, 21 Mar 2006 22:52:06 +0000 (22:52 +0000)
committerPaul Brook <paul@codesourcery.com>
Tue, 21 Mar 2006 22:52:06 +0000 (22:52 +0000)
* config/tc-arm.c (md_apply_fix): Fix typo in offset mask.

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

index a70bb80..10a88e5 100644 (file)
@@ -1,3 +1,7 @@
+2006-03-21  Paul Brook  <paul@codesourcery.com>
+
+       * config/tc-arm.c (md_apply_fix): Fix typo in offset mask.
+
 2006-03-21  Sterling Augustine  <sterling@tensilica.com>
 
        * config/tc-xtensa.c (enforce_three_byte_loop_align): New flag.
index 876eb5d..7b4887d 100644 (file)
@@ -11925,7 +11925,7 @@ md_apply_fix (fixS *    fixP,
       if (fixP->fx_done || !seg->use_rela_p)
        {
          newval = md_chars_to_number (buf, THUMB_SIZE);
-         newval |= ((value & 0x2e) << 2) | ((value & 0x40) << 3);
+         newval |= ((value & 0x3e) << 2) | ((value & 0x40) << 3);
          md_number_to_chars (buf, newval, THUMB_SIZE);
        }
       break;