]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* config/tc-sparc.c (md_apply_fix): Handle BFD_RELOC_8.
authorDavid S. Miller <davem@redhat.com>
Thu, 17 Nov 2011 04:24:56 +0000 (04:24 +0000)
committerDavid S. Miller <davem@redhat.com>
Thu, 17 Nov 2011 04:24:56 +0000 (04:24 +0000)
gas/ChangeLog
gas/config/tc-sparc.c

index 2a140cbf034a55f16a9070583ed7bb6c16e5309f..da88c3b86a0cacefd0881b0039a03fa785b180a0 100644 (file)
@@ -1,3 +1,7 @@
+2011-11-16  David S. Miller  <davem@davemloft.net>
+
+       * config/tc-sparc.c (md_apply_fix): Handle BFD_RELOC_8.
+
 2011-11-16  Maciej W. Rozycki  <macro@codesourcery.com>
 
        * config/tc-mips.c (macro): Fix unsupported opcode message
index 77fda56b8a265e8f1fb7b16cdf5409f2cbb48e45..f4537330671077b023c78a88bd821fe7d2fff863 100644 (file)
@@ -3193,8 +3193,12 @@ md_apply_fix (fixS *fixP, valueT *valP, segT segment ATTRIBUTE_UNUSED)
 
   /* If this is a data relocation, just output VAL.  */
 
-  if (fixP->fx_r_type == BFD_RELOC_16
-      || fixP->fx_r_type == BFD_RELOC_SPARC_UA16)
+  if (fixP->fx_r_type == BFD_RELOC_8)
+    {
+      md_number_to_chars (buf, val, 1);
+    }
+  else if (fixP->fx_r_type == BFD_RELOC_16
+          || fixP->fx_r_type == BFD_RELOC_SPARC_UA16)
     {
       md_number_to_chars (buf, val, 2);
     }