This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[SH64 Patch] Add missing relocation
- From: Andrew STUBBS <andrew dot stubbs at st dot com>
- To: binutils <binutils at sources dot redhat dot com>
- Date: Wed, 15 Dec 2004 14:35:37 +0000
- Subject: [SH64 Patch] Add missing relocation
- Organization: STMicroelectronics
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)
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. */