diff options
author | David S. Miller <davem@redhat.com> | 2011-11-17 04:24:56 +0000 |
---|---|---|
committer | David S. Miller <davem@redhat.com> | 2011-11-17 04:24:56 +0000 |
commit | a7bbf4e9b9ed14909afef85db4ffc91a6f4cb50a (patch) | |
tree | a50cb0324b4bd50dda730b401cddfd14455dcd95 /gas/config | |
parent | 3aaeb7d3ca4cc3e3a6bed68a640083d2b78d71e0 (diff) | |
download | gdb-a7bbf4e9b9ed14909afef85db4ffc91a6f4cb50a.zip gdb-a7bbf4e9b9ed14909afef85db4ffc91a6f4cb50a.tar.gz gdb-a7bbf4e9b9ed14909afef85db4ffc91a6f4cb50a.tar.bz2 |
* config/tc-sparc.c (md_apply_fix): Handle BFD_RELOC_8.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-sparc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gas/config/tc-sparc.c b/gas/config/tc-sparc.c index 77fda56..f453733 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); } |