aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-spu.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-07-04 13:04:04 +0000
committerAlan Modra <amodra@gmail.com>2008-07-04 13:04:04 +0000
commitd62f07d07da0af73891c4479c8e233968b0a3606 (patch)
tree70e4e6c08740f077123f5916d2f2f556d235ac4b /gas/config/tc-spu.c
parent711eabedca708f276d9c8756fb5fe83802327c8f (diff)
downloadgdb-d62f07d07da0af73891c4479c8e233968b0a3606.zip
gdb-d62f07d07da0af73891c4479c8e233968b0a3606.tar.gz
gdb-d62f07d07da0af73891c4479c8e233968b0a3606.tar.bz2
* config/tc-spu.c (md_apply_fix): Handle fully resolved
BFD_RELOC_32_PCREL, BFD_RELOC_SPU_HI16 and BFD_RELOC_SPU_LO16.
Diffstat (limited to 'gas/config/tc-spu.c')
-rw-r--r--gas/config/tc-spu.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gas/config/tc-spu.c b/gas/config/tc-spu.c
index c5a44ce..3b579d4 100644
--- a/gas/config/tc-spu.c
+++ b/gas/config/tc-spu.c
@@ -964,6 +964,7 @@ md_apply_fix (fixS *fixP, valueT *valP, segT seg ATTRIBUTE_UNUSED)
return;
case BFD_RELOC_32:
+ case BFD_RELOC_32_PCREL:
md_number_to_chars (place, val, 4);
return;
@@ -1011,6 +1012,14 @@ md_apply_fix (fixS *fixP, valueT *valP, segT seg ATTRIBUTE_UNUSED)
res = (val & 0x3fffc) << 5;
break;
+ case BFD_RELOC_SPU_HI16:
+ res = (val >> 9) & 0x7fff80;
+ break;
+
+ case BFD_RELOC_SPU_LO16:
+ res = (val << 7) & 0x7fff80;
+ break;
+
default:
as_bad_where (fixP->fx_file, fixP->fx_line,
_("reloc %d not supported by object file format"),