This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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]

MIPS multigot issues


I've got a problem compiling with gcc 3.0.4 on an sgi-irix-6.5.
I got the dreaded GOT overflow problem, so I've tried everything
I can think of to work around it.  -multigot alone didn't seem to
help.  

I tried the -G0 compiler option.  Now my program links, but 
crashes before main() when I try to run it.  The documentation 
says that if you use this, all your code must be compiled with 
the same setting.  I'm guessing this means I need to rebuild
libstdc++ and libgcc for -G0.  Am I correct?  How would I
go about configuring gcc so it will build this way?

gdb hasn't been helpful in tracking down the crash.  When
I run the program under gdb, it doesn't crash but takes all
the CPU like it's stuck in an infinite loop, and gdb won't let
me ctrl-C to break and see where it is.  And if I set a break-
point at the start of main(), it never gets there.

I've also reconfigured my build to use shared libraries, so 
this weekend I'm going to try the combination of shared
libs with -multigot and no -G0 and see if that works.

 -- Dave Williss
------
Meddle not in the affairs of dragons, 
   for you are crunchy and taste good with catsup



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