This is the mail archive of the gcc@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]

Re: Object files increadibly big for MIPS target.


Mike Stump wrote:
> 
> > Date: Thu, 05 Nov 1998 12:36:15 -0800
> > From: Pal-Kristian Engstad <engstad@intermetrics.com>
> 
> > I've successfully built a r4300 cross compiler for the Nintendo
> > system, but I have a problem which I can't seem to fix. When
> > compiling with debugging on, the object files generated are huge.
> > It seems like there is a huge .mdebug section in the object (ELF
> > format), but there is no need for this section, as the debugger
> > is not reading this information at all.
> 
> > So the question is: How do you configure gcc and binutils not to
> > generate this huge .mdebug section?
> 
> Is the space loaded into ram, or are you just complaining about $0.25
> worth of disk space?  If the later, why?  If it is unused, why can't
> you just strip it with obbcopy --remove-section=?
> 
I've had this problem using egcs on mips-sgi-irix6.4.  The .mdebug
section does get loaded and it is HUGE.  I run with 512Meg of ram and my
program swapped just starting up!  I did not even load a data set.

Thanks for the objcopy hint.  I'll give it a try.

-- 
 * J. Gabriel Foster         Silicon Grail       gabe@sgrail.com *
 *                   Cashing in on being a nerd.                 *


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