[SH64 Patch] Add missing relocation
Andrew STUBBS
andrew.stubbs@st.com
Wed Dec 15 14:39:00 GMT 2004
The relocation BFD_RELOC_SH_IMMS10BY8 appears to be only partially
implemented. The number is defined but there is no entry in the switch
statement in tc-sh64.c.
The attached patch should sort out the problem.
--
Andrew Stubbs
andrew.stubbs@st.com
(aka. andrew.stubbs@superh.com)
-------------- next part --------------
2004-12-14 Andrew Stubbs <andrew.stubbs@st.com>
* config/tc-sh64.c (shmedia_md_apply_fix3): Add missing
BFD_RELOC_SH_IMMS10BY8 relocation.
--- src/gas/config/tc-sh64.c 2004-01-14 21:07:45.000000000 +0000
+++ src/gas/config/tc-sh64.c 2004-12-14 11:33:17.000000000 +0000
@@ -739,6 +741,11 @@ shmedia_md_apply_fix3 (fixS *fixP, value
insn | ((val & (0x3ff << 2)) << (10 - 2)), 4);
break;
+ case BFD_RELOC_SH_IMMS10BY8:
+ md_number_to_chars (buf,
+ insn | ((val & (0x3ff << 3)) << (10 - 3)), 4);
+ break;
+
case BFD_RELOC_SH_SHMEDIA_CODE:
/* We just ignore and remove this one for the moment. FIXME:
Use it when implementing relaxing. */
More information about the Binutils
mailing list