linux-mips
[Top] [All Lists]

Re: MIPS GOT overflow in gcc 3.2.

To: Eric Christopher <echristo@redhat.com>
Subject: Re: MIPS GOT overflow in gcc 3.2.
From: "H. J. Lu" <hjl@lucon.org>
Date: Mon, 1 Jul 2002 23:58:49 -0700
Cc: linux-mips@oss.sgi.com, GNU C Library <libc-alpha@sources.redhat.com>, binutils@sources.redhat.com
In-reply-to: <1025579401.1785.0.camel@ghostwheel.cygnus.com>; from echristo@redhat.com on Mon, Jul 01, 2002 at 08:09:59PM -0700
References: <20020701184640.A2043@lucon.org> <1025575632.30577.64.camel@ghostwheel.cygnus.com> <1025579401.1785.0.camel@ghostwheel.cygnus.com>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5.1i
On Mon, Jul 01, 2002 at 08:09:59PM -0700, Eric Christopher wrote:
> 
> > AFAIK it happens to mozilla as well.
> > 
> > Guh.
> 
> There are a few different possible solutions, one is to do the
> -fPIC/-fpic split, another is to copy to SGI multigot, I'm sure there
> are other solutions as well...
> 

I am testing this patch now. It will take a day to verify it.


H.J.
----
2002-07-02  H.J. Lu <hjl@gnu.org>

        * ltcf-gcj.sh (ac_cv_prog_cc_pic): Add "-Wa,-xgot" for
        Linux/mips.

--- ltcf-gcj.sh.xgot    Mon Sep 10 08:39:17 2001
+++ ltcf-gcj.sh Mon Jul  1 23:49:06 2002
@@ -639,6 +639,14 @@ fi
         ac_cv_prog_cc_pic=-Kconform_pic
       fi
       ;;
+    linux*) 
+      ac_cv_prog_cc_pic='-fPIC'
+      case $host_cpu in
+      mips*)  
+       ac_cv_prog_cc_pic="$ac_cv_prog_cc_pic -Wa,-xgot"
+       ;;      
+      esac
+      ;;      
     *)
       ac_cv_prog_cc_pic='-fPIC'
       ;;


<Prev in Thread] Current Thread [Next in Thread>