This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[SH64 Patch] Add missing relocation


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.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]