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

See the CrossGCC FAQ for lots more information.


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

Re: cross compiling for PPC7400/Linux on Solaris 8


Hello Dan,

In case it can help, please find attached the patch file I put in
crosstool-0.28-rc27/patches/binutils-2.15 to solve my problem.

JC

On Tue, 2004-07-06 at 10:04, Jean-Christophe Dubois wrote:
> Hello Dan,
> 
> The case http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16259 has been
> updated and I verified the proposed patch is now part of binutils CVS. I
> was also able to complete a Linux 2.6.7 PPC compilation with the Solaris
> tool chain.
> 
> Regards
> 
> JC
> 
> On Mon, 2004-07-05 at 16:31, Jean-Christophe Dubois wrote:
> > Hello Dan,
> > 
> > On Mon, 2004-07-05 at 15:17, Dan Kegel wrote:
> > > Jean-Christophe Dubois wrote:
> > > > Hello Dan,
> > > > 
> > > > What would you think of adding the following patch to crosstool?
> > > > 
> > > > http://sources.redhat.com/ml/binutils/2004-06/msg00114.html
> > > > 
> > > > It seems to be the root of my problem with binutils 2.15 on Solaris 8.
> > > 
> > > Gladly, especially if it's in binutils cvs already.
> > > Can you update your gcc bug report with a pointer to
> > > that patch?
> > 
> > I will, as soon as I have verified that binutils 2.15 does work
> > correctly to build the Linux kernel when passed "-mppc -maltivec -many"
> > by gcc (unlike 2.14).
> > 
> > JC
> > 
> > 
> > ------
> > Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> > Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
-- 
Jean-Christophe Dubois <jdubois@mc.com>
Mercury Computer Systems
--- src/bfd/elflink.c.org	2004-07-05 09:11:42.920597000 -0400
+++ src/bfd/elflink.c	2004-07-05 09:12:59.240847000 -0400
@@ -2700,7 +2700,7 @@
     return vdiff > 0 ? 1 : -1;
   else
     {
-      long sdiff = h1->root.u.def.section - h2->root.u.def.section;
+      long sdiff = h1->root.u.def.section->id - h2->root.u.def.section->id;
       if (sdiff != 0)
 	return sdiff > 0 ? 1 : -1;
     }
@@ -3954,7 +3954,7 @@
 		i = idx + 1;
 	      else
 		{
-		  long sdiff = slook - h->root.u.def.section;
+		  long sdiff = slook->id - h->root.u.def.section->id;
 		  if (sdiff < 0)
 		    j = idx;
 		  else if (sdiff > 0)

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com

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