MIPS GOT overflow in gcc 3.2.
Quoted 7 lines
For gcc 3.1.1, I got
[17] .got PROGBITS
0068b8a064b8a0 00ff90 04 WAp 0 0
16
0x00ff90is very close to 64K. I thought it would only happen to KDE.
AFAIK it happens to mozilla as well.
Guh.
-eric
Signature · 1 line
I will not carve gods
Quoted 4 lines
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...
-eric
Signature · 1 line
I will not carve gods
Quoted 9 lines · Eric Christopher
Quoted 4 lines
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 <[email protected]>
* ltcf-gcj.sh (ac_cv_prog_cc_pic): Add "-Wa,-xgot" for Linux/mips.
ltcf-gcj.sh renamed from ltcf-gcj.sh.xgot +8 -0
@@ -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' ;;
Quoted 1 line
AFAIK it happens to mozilla as well.
On AlphaLinux, we eventually acquired multigot. Many large apps were tripping on this problem; many big C++ programs essentially use whole-program compilation, and many HPC codes link a bazillion large libraries. I don't understand if -fpic or -fPIC are as good of a solution as multigot.
greg
Quoted 7 lines · Greg Lindahl
Quoted 1 line
AFAIK it happens to mozilla as well.
On AlphaLinux, we eventually acquired multigot. Many large apps were tripping on this problem; many big C++ programs essentially use whole-program compilation, and many HPC codes link a bazillion large libraries. I don't understand if -fpic or -fPIC are as good of a solution as multigot.
FYI, it is -Wa,-xgot, not -fPIC. multigot may be better. But it is not supported on mips. Until someone adds it, it is not an option.
H.J.
Quoted 11 lines · H. J. Lu
Quoted 7 lines · Greg Lindahl
Quoted 1 line
AFAIK it happens to mozilla as well.
On AlphaLinux, we eventually acquired multigot. Many large apps were tripping on this problem; many big C++ programs essentially use whole-program compilation, and many HPC codes link a bazillion large libraries. I don't understand if -fpic or -fPIC are as good of a solution as multigot.
FYI, it is -Wa,-xgot, not -fPIC. multigot may be better. But it is not supported on mips. Until someone adds it, it is not an option.
No, it's the difference between -fpic and -fPIC. Also not yet implemented. I intend to implement multigot in a couple of months if no one else bothers to first.
You can not link modules with different GOT models together last I checked, HJ. That means that if any static code from libgcc is used in libjava you'll lose badly with -Wa,-xgot. Ditto libc_nonshared.a.
Signature · 2 lines
Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer
RFC: Use -Wa,-xgot for Linux/mips (Re: MIPS GOT overflow in gcc 3.2.)
In reply to Eric ChristopherQuoted 9 lines · Eric Christopher
Quoted 4 lines
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 enclosing a kludge here. With that, I got
http://gcc.gnu.org/ml/gcc-testresults/2002-07/msg00062.html
Any comments?
H.J.
2002-07-02 H.J. Lu <[email protected]>
* ltcf-c.sh (ac_cv_prog_cc_pic): Add "-Wa,-xgot" for Linux/mips.
* ltcf-cxx.sh (ac_cv_prog_cc_pic): Likewise.
* ltcf-gcj.sh (ac_cv_prog_cc_pic): Likewise.
ltcf-c.sh renamed from ltcf-c.sh.xgot +8 -0
@@ -672,6 +672,14 @@ else 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' ;;
ltcf-cxx.sh renamed from ltcf-cxx.sh.xgot +8 -0
@@ -707,6 +707,14 @@ if test "$with_gcc" = yes; then 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' ;;
ltcf-gcj.sh renamed from ltcf-gcj.sh.xgot +8 -0
@@ -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' ;;
Re: RFC: Use -Wa,-xgot for Linux/mips (Re: MIPS GOT overflow in gcc 3.2.)
Quoted 11 lines · H. J. Lu
Quoted 9 lines · Eric Christopher
Quoted 4 lines
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...
Quoted 5 lines
I am enclosing a kludge here. With that, I got
http://gcc.gnu.org/ml/gcc-testresults/2002-07/msg00062.html
Any comments?
Did you see my message about mixing GOT models? I'd need Ralf or Eric to confirm this, but I'm pretty sure there's a lot of luck involved in your workaround.
Signature · 2 lines
Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer
Re: RFC: Use -Wa,-xgot for Linux/mips (Re: MIPS GOT overflow in gcc 3.2.)
Quoted 12 lines · Daniel Jacobowitz
Quoted 11 lines · H. J. Lu
Quoted 9 lines · Eric Christopher
Quoted 4 lines
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...
Quoted 7 lines
Quoted 5 lines
I am enclosing a kludge here. With that, I got
http://gcc.gnu.org/ml/gcc-testresults/2002-07/msg00062.html
Any comments?
Did you see my message about mixing GOT models? I'd need Ralf or Eric to
A testcase?
H.J.
Re: RFC: Use -Wa,-xgot for Linux/mips (Re: MIPS GOT overflow in gcc 3.2.)
In reply to Daniel JacobowitzQuoted 3 lines · Daniel Jacobowitz
Did you see my message about mixing GOT models? I'd need Ralf or Eric to confirm this, but I'm pretty sure there's a lot of luck involved in your workaround.
I've not seen your posting but yes, due to other static objects involved into linking there definately is luck involved.
Ralf