mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-24 12:35:55 +08:00
* config/tc-spu.c (md_apply_fix): Handle fully resolved
BFD_RELOC_32_PCREL, BFD_RELOC_SPU_HI16 and BFD_RELOC_SPU_LO16.
This commit is contained in:
parent
711eabedca
commit
d62f07d07d
@ -1,3 +1,8 @@
|
||||
2008-07-04 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* config/tc-spu.c (md_apply_fix): Handle fully resolved
|
||||
BFD_RELOC_32_PCREL, BFD_RELOC_SPU_HI16 and BFD_RELOC_SPU_LO16.
|
||||
|
||||
2008-06-25 Peter Bergner <bergner@vnet.ibm.com>
|
||||
|
||||
* config/tc-ppc.c (parse_cpu): Handle -m464.
|
||||
|
@ -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"),
|
||||
|
Loading…
Reference in New Issue
Block a user