From a7bbf4e9b9ed14909afef85db4ffc91a6f4cb50a Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Thu, 17 Nov 2011 04:24:56 +0000 Subject: [PATCH] * config/tc-sparc.c (md_apply_fix): Handle BFD_RELOC_8. --- gas/ChangeLog | 4 ++++ gas/config/tc-sparc.c | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 2a140cbf034..da88c3b86a0 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2011-11-16 David S. Miller + + * config/tc-sparc.c (md_apply_fix): Handle BFD_RELOC_8. + 2011-11-16 Maciej W. Rozycki * config/tc-mips.c (macro): Fix unsupported opcode message diff --git a/gas/config/tc-sparc.c b/gas/config/tc-sparc.c index 77fda56b8a2..f4537330671 100644 --- a/gas/config/tc-sparc.c +++ b/gas/config/tc-sparc.c @@ -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); } -- 2.30.2