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]

Make CTOR relocs the right size for 64 bit ppc target



Even thought we don't use them, zap this FIXME.

	* config/tc-ppc.c (md_apply_fix3 <BFD_RELOC_CTOR>): Make it 64
	bits if target is 64 bit.

-- 
Alan Modra

Index: gas/config/tc-ppc.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ppc.c,v
retrieving revision 1.32
diff -u -p -r1.32 tc-ppc.c
--- tc-ppc.c	2001/09/19 05:33:29	1.32
+++ tc-ppc.c	2001/10/02 06:20:52
@@ -5207,8 +5207,9 @@ md_apply_fix3 (fixp, valuep, seg)
 #endif
       switch (fixp->fx_r_type)
 	{
+#if BFD_DEFAULT_TARGET_SIZE != 64
 	case BFD_RELOC_CTOR:
-	  /* FIXME: 32 bits even for 64-bit targets?  */
+#endif
 	case BFD_RELOC_32:
 	  if (fixp->fx_pcrel)
 	    fixp->fx_r_type = BFD_RELOC_32_PCREL;
@@ -5222,6 +5223,9 @@ md_apply_fix3 (fixp, valuep, seg)
 			      value, 4);
 	  break;
 
+#if BFD_DEFAULT_TARGET_SIZE == 64
+	case BFD_RELOC_CTOR:
+#endif
 	case BFD_RELOC_64:
 	  if (fixp->fx_pcrel)
 	    fixp->fx_r_type = BFD_RELOC_64_PCREL;


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