* [SH64 Patch] Add missing relocation
@ 2004-12-15 14:39 Andrew STUBBS
0 siblings, 0 replies; only message in thread
From: Andrew STUBBS @ 2004-12-15 14:39 UTC (permalink / raw)
To: binutils
[-- Attachment #1: Type: text/plain, Size: 282 bytes --]
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)
[-- Attachment #2: sh64-reloc.patch --]
[-- Type: text/plain, Size: 691 bytes --]
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. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-12-15 14:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-15 14:39 [SH64 Patch] Add missing relocation Andrew STUBBS
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).